The Oak by Digistump > Oak Support

Pinmode output

(1/1)

dynek:
Hello guys,

I've been playing with the Oak, the Arduino IDE and ArduinoOTA, so far so good!
Wanted to go next and just put pinMode(6, OUTPUT); in the setup (tried other ports) and the Oak keeps resetting...

Am I missing something very obvious here?

Cheers


--- Code: ---void setup()
{               
  Serial.begin(115200);
  Serial.println("Before");
  pinMode(8, OUTPUT);
  Serial.println("After");
}

void loop()
{}
--- End code ---



--- Quote ---Before

 ets Jan  8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
   Before

 ets Jan  8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
   Before
--- End quote ---

dynek:
Erm OK: Oak Pin to ESP8266 GPIO Mapping
https://digistump.com/wiki/oak/tutorials/pinout

Would have been cool to have a mapping using e.g. P8 instead of (GPIO)15.

Navigation

[0] Message Index

Go to full version