Bigroom esp32
This commit is contained in:
17
I2C Scan/.vscode/extensions.json
vendored
17
I2C Scan/.vscode/extensions.json
vendored
@@ -1,7 +1,10 @@
|
||||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
]
|
||||
}
|
||||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
],
|
||||
"unwantedRecommendations": [
|
||||
"ms-vscode.cpptools-extension-pack"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[platformio]
|
||||
default_envs = uno_ob
|
||||
default_envs = lolin
|
||||
[env:uno]
|
||||
platform = atmelavr
|
||||
board = uno
|
||||
@@ -26,3 +26,7 @@ framework = arduino
|
||||
platform = atmelavr
|
||||
board = nanoatmega328
|
||||
framework = arduino
|
||||
[env:lolin]
|
||||
platform = espressif32
|
||||
board = lolin32
|
||||
framework = arduino
|
||||
|
||||
@@ -18,19 +18,19 @@ void setup() {
|
||||
}
|
||||
|
||||
Serial.println ();
|
||||
//#undef SCL
|
||||
//#undef SDA
|
||||
#undef SCL
|
||||
#undef SDA
|
||||
#define SCL 32
|
||||
#define SDA 33
|
||||
Serial.print("SCL=");Serial.println (SCL);
|
||||
Serial.print("SDA=");Serial.println (SDA);
|
||||
Serial.print("PWSCL=");Serial.println (PIN_WIRE_SCL);
|
||||
Serial.print("PWSDA=");Serial.println (PIN_WIRE_SDA);
|
||||
//Serial.print("PWSCL=");Serial.println (PIN_WIRE_SCL);
|
||||
//Serial.print("PWSDA=");Serial.println (PIN_WIRE_SDA);
|
||||
Serial.println ();
|
||||
Serial.println ("I2C scanner. Scanning ...");
|
||||
byte count = 0;
|
||||
|
||||
/*#define SCL 5
|
||||
#define SDA 4*/
|
||||
Wire.begin();
|
||||
Wire.begin(SDA, SCL);
|
||||
for (byte i = 8; i < 120; i++)
|
||||
{
|
||||
Wire.beginTransmission (i);
|
||||
|
||||
Reference in New Issue
Block a user