Author Topic: Pinmode output  (Read 8133 times)

dynek

  • Newbie
  • *
  • Posts: 9
Pinmode output
« on: January 31, 2020, 10:55:46 am »
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: [Select]
void setup()
{               
  Serial.begin(115200);
  Serial.println("Before");
  pinMode(8, OUTPUT);
  Serial.println("After");
}

void loop()
{}


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
« Last Edit: January 31, 2020, 10:59:56 am by dynek »

dynek

  • Newbie
  • *
  • Posts: 9
Re: Pinmode output
« Reply #1 on: January 31, 2020, 03:01:25 pm »
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.