Skip to content

Commit ccc57ee

Browse files
author
ladyada
committed
fix compile warnings + make work with busio library!
1 parent 0dad98d commit ccc57ee

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

libraries/Wire/TinyWireM.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ size_t TinyM_USI_TWI::write(uint8_t data){ // buffers up data to send
5959
}
6060

6161
uint8_t TinyM_USI_TWI::endTransmission() {
62-
endTransmission(1);
62+
return endTransmission(1);
6363
}
6464

6565
uint8_t TinyM_USI_TWI::endTransmission(uint8_t stop){ // actually sends the buffer

libraries/Wire/TinyWireM.h

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class TinyM_USI_TWI
8383

8484
extern TinyM_USI_TWI Wire;
8585

86+
typedef TinyM_USI_TWI TwoWire;
87+
8688
#endif
8789

8890
#endif //attiny85

variants/tiny8/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#define NUM_DIGITAL_PINS 3
4848
#define NUM_ANALOG_INPUTS 1
4949
#define LED_BUILTIN 1
50+
#define SPI_INTERFACES_COUNT 0
5051

5152
#define PIN_A0 (6)
5253
#define PIN_A1 (7)

0 commit comments

Comments
 (0)