Change pin numbers for esp8266 → esp32 change, but whether they are actually correct of not is correctly unclear

as usual, it's all untested....
This commit is contained in:
Starbeamrainbowlabs 2022-01-10 14:35:12 +00:00
parent f6d158236e
commit cfa67aea37
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 13 additions and 10 deletions

View File

@ -1,11 +1,13 @@
#include <bitset>
#include <string>
#define MULTIPLEX_PINA D5
#define MULTIPLEX_PINB D6
#define MULTIPLEX_PINC D7
// WAS D5 D6 D7
#define MULTIPLEX_PINA 17
#define MULTIPLEX_PINB 16
#define MULTIPLEX_PINC 4
#define ANALOG_PIN A0
// WAS A0
#define ANALOG_PIN 34
/*
000 0
@ -27,8 +29,6 @@
// Ref https://stackoverflow.com/a/523737/1460422
#define CHECK_BIT(var,pos) ((var) & (1<<(pos)))
int soilPin = D3;
float referenceVoltage = 3.3;

View File

@ -13,11 +13,14 @@
#include "settings.h"
#define MULTIPLEX_PINA D5
#define MULTIPLEX_PINB D6
#define MULTIPLEX_PINC D7
// WAS D5 D6 D7
#define ANALOG_PIN A0
#define MULTIPLEX_PINA 17
#define MULTIPLEX_PINB 16
#define MULTIPLEX_PINC 4
// WAS A0
#define ANALOG_PIN 34
/*
000 0