Bigroom esp32

This commit is contained in:
2022-03-14 13:05:34 +03:00
parent 8b6684deb0
commit f87f56292f
11 changed files with 714 additions and 167 deletions

View File

@@ -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"
]
}

View File

@@ -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

View File

@@ -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);