Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (33 sloc) 1.02 KB
/*
* Copyright (c) 2015 - 2025 MaiKe Labs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "noduino.h"
// the blue led, gpio 2
int LED = 2;
void setup()
{
pinMode(LED, OUTPUT); // set gpio2 to output mode
digitalWrite(LED, LOW);
wifi_set_opmode(NULL_MODE);
}
void loop()
{
digitalWrite(LED, HIGH); // light on
delay(1000); // delay 1000ms
digitalWrite(LED, LOW); // light off
delay(1000); // delay 1000ms
}