-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdot11-hello-blink.ino
66 lines (56 loc) · 1.73 KB
/
dot11-hello-blink.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* a-hello-blink.ino for the Portenta H7
*
* GNU GENERAL PUBLIC LICENSE
* Use at your own risk.
************************************************ Important stuff if needed ****************************************
*
*
*
********************************************************** end ****************************************************
*
* Turns on the blue LED for one second, then off for three seconds, repeatedly.
* also checks if Serial Printing is working
* July 22nd, 2020
* by Jeremy Ellis
* Twitter @rocksetta
* Website https://www.rocksetta.com
*/
#include <Arduino.h> // Only needed by https://platformio.org/
void setup() {
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT); // try on Portenta LEDB = blue, LEDG or LED_BUILTIN = green, LEDR = red
}
void loop() {
Serial.println("Serial print works on the Portenta M7 core only. Here is A0 reading: " + String(analogRead(A0)) );
digitalWrite(LED_BUILTIN, LOW); // internal LED LOW = on for onboard LED
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, HIGH);
delay(3000);
}
/*
* Clickable links for helpful information
* By @rocksetta
* March, 2021
* GNU GENERAL PUBLIC LICENSE
* Use at your own risk.
*
*
*
* Artduino Pro Links:
*
* https://store.arduino.cc/usa/portenta-h7
* https://forum.arduino.cc/index.php?board=148.0
* https://www.arduino.cc/pro/tutorials/portenta-h7
*
* Rocksetta links:
*
* https://twitter.com/rocksetta
* https://github.com/hpssjellis/portenta-pro-community-solutions
* https://github.com/hpssjellis/my-examples-for-the-arduino-portentaH7
* https://github.com/hpssjellis/arduino-high-school-robotics-course
* https://www.youtube.com/playlist?list=PL57Dnr1H_egtm0pi-okmG0iE_X5dROaLw
*
*
*
*/