I the documentation I've read it said it needs to be run when there is a change to the file or when the file is closed? Is this wrong? And what does it do anyway?
Well I don't know how, I certainly didn't mean too. Also it's just a single drive I. H was another device. It also shows up when i use a MTP example program. I think it has something to do with the Serial + MTP Disk (Experimental) setting
I know this is an old thread but maybe someone can explain why when i use MTP, the teensy shows up under this pc but also two additional drives show up in my drive list, I and H? When i click on either one windows says please insert disk. It's...
After trying to load the above code i get this error again
Unable to open COM3 for reboot request
Windows Error Info: Access is denied.
more ideas... https://forum.pjrc.com/threads/40632?p=126667&viewfull=1#post126667
Teensy did not respond...
I tested with a new teensy by plugging it into the usb and it behaves as it should but i have not attempted to program it as i don't need it broken too
I was messing around with MTP and made the above changes to MTP_Teensy.h with one of the example programs and now the teensy 4.1 won't show up as a usb device in Arduino. The comm port (com4) shows but not the HID. I can't program it any...
I hate this "analogWrite" function. The output is pulsed digital. It is not the output of some digital to analog converter. Pulsed output can be filtered with some analog electronic to produce close to DC output, wich lowers response time. It...
I resolved the issue by doing this...
static void Bypass()
{
Serial.println("in bypass function");
//while(digitalRead(bypasspin) == HIGH)
for (; ; )
{
if (Serial1.available()) { // If anything comes in Serial1...
@defragster, I replaced the while(digitalRead(bypasspin) == HIGH) with with while(true) or for( ; ; ) it is working as expected in my expanded code with either! It seems to be failing in the digitalRead(bypasspin). So now, how can break out of...
Connection are as follows, serial1 is connected to comm 1 on a computer through a rs232 ic. Serial2 is connected to a secind computer serial port the same way. I am using a switch to bring pin 3 high. Debounce should not be required. As the...
I fixed that,that was a stupid mistake.
so I fixed that and it works. I expanded the code to what i need it to do and it still doesn't work. Can you see a reason why this would not work? It jumps in when the pin is high from this call in the...
Passing serial data from serial1 to serial2 in an loop endlessly works fine like this;
/ the setup function runs once when you press reset or power the board
void setup() {
Serial.begin(9600);
while(!Serial); //wait until serial...
I plan on using it to send a zero totalizer command via modbus to a flow meter using a momentary button switch. Do you have another suggestion to do this on a button press?
In the following program
const int buttonPin = 2; // Pin for button
void buttonISR() {
Serial.println("Button Pressed! Sending message...");
delay(1500);
}
void setup() {
Serial.begin(9600); // Initialize USB serial for debugging...