Show Posts
|
|
Pages: 1 [2] 3 4 ... 9
|
|
21
|
Using Arduino / Programming Questions / Re: Leonardo CDC handshake signals
|
on: September 28, 2012, 12:34:44 pm
|
|
I've been digging through the USB and CDC core files now for several hours, and I still don't really understand exactly what needs to be changed (or how to do it).
I can read the value of _usbLineInfo.lineState, and it does indeed contain the status of DTR and RTS. However, the values only get updated when DTR changes. If the PC application (in this case a serial terminal) changes RTS, the value of _usbLineInfo.lineState will only change at the moment that DTR is changed (either made high, or made low).
Could someone with the ability please implement the handshaking signals? I'm sure I'm not the only one who wants this.
|
|
|
|
|
22
|
Using Arduino / Programming Questions / Re: Leonardo CDC handshake signals
|
on: September 27, 2012, 11:10:28 pm
|
|
A COM (Edit: as in RS232) port has 8 signals; DCD, Rx, Tx, DTR, DSR, RTS, CTS, and RI. Obviously USB CDC supports these, because an FTDI (which uses USB CDC AFAIK) supports them. The Arduino core gives the user access to Rx and Tx, but I need access to RTS and CTS as well.
|
|
|
|
|
29
|
Using Arduino / Programming Questions / Re: Using timer interrupts in a library
|
on: September 26, 2012, 07:49:16 pm
|
Then I get In file included from RCXIR_Test.ino:2: C:\Users\Family\Dropbox\Matt's Technology\Arduino\Sketch Book\libraries\RCXIR/RCXIR.h:17:18: error: FIFO.h: No such file or directory In file included from RCXIR_Test.ino:2: C:\Users\Family\Dropbox\Matt's Technology\Arduino\Sketch Book\libraries\RCXIR/RCXIR.h:30: error: 'FIFOClass' does not name a type
|
|
|
|
|
30
|
Using Arduino / Programming Questions / Re: Using timer interrupts in a library
|
on: September 26, 2012, 06:59:47 pm
|
If I change the user sketch to include the FIFO library: #include <FIFO.h> #include <RCXIR.h>
void setup() { Serial.begin(2400); Serial.println(""); // This code will only run once, after each powerup or reset of the board
}
void loop() { // This code will loops consecutively
} Then the compiler output is as follows: RCXIR\RCXIR.cpp.o: In function `RCXIRsetup(unsigned char, unsigned char)': C:\Users\Family\Dropbox\Matt's Technology\Arduino\Sketch Book\libraries\RCXIR/RCXIR.cpp:18: multiple definition of `FIFO' RCXIR_Test.cpp.o:(.bss.FIFO+0x0): first defined here
|
|
|
|
|