[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 19:55:34 -05:00
committed by GitHub
co-authored by Ben Meadors
parent 568434d0fa
commit 41267a42f7
3 changed files with 14 additions and 2 deletions
+6
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