fix compile warnings + make work with busio library!

This commit is contained in:
ladyada 2021-06-30 16:21:54 -04:00
parent 0dad98d190
commit ccc57ee82f
3 changed files with 4 additions and 1 deletions

View file

@ -59,7 +59,7 @@ size_t TinyM_USI_TWI::write(uint8_t data){ // buffers up data to send
} }
uint8_t TinyM_USI_TWI::endTransmission() { uint8_t TinyM_USI_TWI::endTransmission() {
endTransmission(1); return endTransmission(1);
} }
uint8_t TinyM_USI_TWI::endTransmission(uint8_t stop){ // actually sends the buffer uint8_t TinyM_USI_TWI::endTransmission(uint8_t stop){ // actually sends the buffer

View file

@ -83,6 +83,8 @@ class TinyM_USI_TWI
extern TinyM_USI_TWI Wire; extern TinyM_USI_TWI Wire;
typedef TinyM_USI_TWI TwoWire;
#endif #endif
#endif //attiny85 #endif //attiny85

View file

@ -47,6 +47,7 @@
#define NUM_DIGITAL_PINS 3 #define NUM_DIGITAL_PINS 3
#define NUM_ANALOG_INPUTS 1 #define NUM_ANALOG_INPUTS 1
#define LED_BUILTIN 1 #define LED_BUILTIN 1
#define SPI_INTERFACES_COUNT 0
#define PIN_A0 (6) #define PIN_A0 (6)
#define PIN_A1 (7) #define PIN_A1 (7)