Switch SD2cadrLib to fastio
Replace all fastDigitalRead/Write() with READ/WRITE() Define SCK_PIN, MISO_PIN, MOSI_PIN in pins.h if not already defined in the pins_*.h files. Remove these conditional pin definitions from the pin-files. They are now always defined. Define separate sets of SPI-pins for AT90USB with and without Teensy support in fastio.h. Likely this was the main reason for all that confusion about the AT90USB-SPI pins.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
/**
|
||||
* @brief Tone structure
|
||||
* @details Simple abstration of a tone based on a duration and a frequency.
|
||||
* @details Simple abstraction of a tone based on a duration and a frequency.
|
||||
*
|
||||
*/
|
||||
struct tone_t {
|
||||
@@ -57,7 +57,7 @@ class Buzzer {
|
||||
* @details This will invert the current state of an digital IO pin.
|
||||
*/
|
||||
void invert() {
|
||||
WRITE(BEEPER_PIN, !READ(BEEPER_PIN));
|
||||
TOGGLE(BEEPER_PIN);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user