Skip to content

Commit 822a2e4

Browse files
committed
update spi, fix lcd error
1 parent 2c40bcd commit 822a2e4

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

digistump-avr/libraries/DigisparkLCD/LiquidCrystal_I2C.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
#include <inttypes.h>
55
#include "Arduino.h"
66

7-
#if defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny2313__) || defined(__AVR_ATtiny167__)
8-
#include "TinyWireM.h" // include this if ATtiny85 or ATtiny2313
9-
#else
10-
#include <Wire.h> // original lib include
11-
#endif
7+
#include "TinyWireM.h" // include this if ATtiny85 or ATtiny2313
8+
129

1310
// When the display powers up, it is configured as follows:
1411
//

digistump-avr/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void loop() {
8585
}
8686

8787
//Read from or write to register from the SCP1000:
88-
unsigned int readRegister(byte thisRegister, int bytesToRead ) {
88+
unsigned int readRegister(byte thisRegister, int bytesToRead) {
8989
byte inByte = 0; // incoming byte from the SPI
9090
unsigned int result = 0; // result to return
9191
Serial.print(thisRegister, BIN);
@@ -117,7 +117,7 @@ unsigned int readRegister(byte thisRegister, int bytesToRead ) {
117117
// take the chip select high to de-select:
118118
digitalWrite(chipSelectPin, HIGH);
119119
// return the result:
120-
return(result);
120+
return (result);
121121
}
122122

123123

digistump-avr/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const int slaveSelectPin = 10;
3636

3737
void setup() {
3838
// set the slaveSelectPin as an output:
39-
pinMode (slaveSelectPin, OUTPUT);
39+
pinMode(slaveSelectPin, OUTPUT);
4040
// initialize SPI:
4141
SPI.begin();
4242
}

digistump-avr/libraries/SPI/library.properties

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ author=Arduino
44
maintainer=Arduino <info@arduino.cc>
55
sentence=Enables the communication with devices that use the Serial Peripheral Interface (SPI) Bus. For all Arduino boards, BUT Arduino DUE.
66
paragraph=
7+
category=Communication
78
url=http://www.arduino.cc/en/Reference/SPI
89
architectures=avr
910

0 commit comments

Comments
 (0)