Skip to content

Commit

Permalink
Add rp2040 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lrustand committed Feb 25, 2024
1 parent fb56c0c commit 07d4c30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ulisp-arm.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2083,8 +2083,10 @@ object *mapcarcan (object *args, object *env, mapfun_t fun) {

void I2Cinit (TwoWire *port, bool enablePullup) {
(void) enablePullup;
#if defined(CPU_RP2040)
port->setSDA(2);
port->setSCL(3);
#endif
port->begin();
}

Expand Down Expand Up @@ -7426,6 +7428,9 @@ void initgfx () {

// Entry point from the Arduino IDE
void setup () {
#if defined(CPU_RP2040)
rp2040.enableDoubleResetBootloader();
#endif
Serial.begin(9600);
delay(2000);
int start = millis();
Expand Down

0 comments on commit 07d4c30

Please sign in to comment.