'HardwareSerial' was not declared in this scope #282
-
EDIT: just realized that Attiny 84a doesn't have hardware serial. I read the information on it wrong. D'oh! Decided to start my project over with an Attiny 84a rather than an 85 so I don't have to mess with softserial. Now when I try to compile I get 'HardwareSerial' was not declared in this scope. #include <MIDI.h> MIDI_CREATE_DEFAULT_INSTANCE(); void setup() { void loop() { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
From what I can read in the Arduino core code, HardwareSerial is disabled for ATtiny chips, which only have a USI (Universal Serial Interface), which does not use the same kind of registers as a dedicated UART, which is what the HardwareSerial interface relies on. |
Beta Was this translation helpful? Give feedback.
From what I can read in the Arduino core code, HardwareSerial is disabled for ATtiny chips, which only have a USI (Universal Serial Interface), which does not use the same kind of registers as a dedicated UART, which is what the HardwareSerial interface relies on.