[rak4630] enable 3.3v periphery before scan for i2c devices (#1847)

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Mykhailo Lesyk
2022-10-22 17:55:34 -07:00
committed by GitHub
parent 568434d0fa
commit 41267a42f7
3 changed files with 14 additions and 2 deletions

View File

@@ -242,6 +242,12 @@ void setup()
delay(1);
#endif
#ifdef RAK4630
// We need to enable 3.3V periphery in order to scan it
pinMode(PIN_3V3_EN, OUTPUT);
digitalWrite(PIN_3V3_EN, 1);
#endif
// We need to scan here to decide if we have a screen for nodeDB.init()
scanI2Cdevice();
#ifdef RAK4630