Iteaduino: Difference between revisions
From Futuragora Wiki
No edit summary |
|||
Line 18: | Line 18: | ||
sudo itead-ethernet gmac | sudo itead-ethernet gmac | ||
===To use Segnix in Python== | ===To use Segnix in Python=== | ||
Create a new file named blink.py which reads as follow: | Create a new file named blink.py which reads as follow: | ||
Line 30: | Line 30: | ||
digitalWrite(LED, LOW) | digitalWrite(LED, LOW) | ||
delay(1000) | delay(1000) | ||
<pre> | |||
#! /usr/bin/env python | #! /usr/bin/env python | ||
from iteadsdk import * | from iteadsdk import * | ||
Line 36: | Line 36: | ||
pinMode(R1, OUTPUT) | pinMode(R1, OUTPUT) | ||
digitalWrite(R1, HIGH) | digitalWrite(R1, HIGH) | ||
</pre> | |||
[[Category:Projectos_Futuragora]] | [[Category:Projectos_Futuragora]] |
Revision as of 02:50, 19 July 2018
https://itead.cc/wiki/Download
https://itead.cc/wiki/Iteaduino_Plus_A10/A20
https://itead.cc/wiki/ITEAD_SDK_Instruction
https://github.com/itead/Segnix
Network problem
Support 1000M-Ethernet This image supports both 100M and 1000M Ethernet. The default set is 1000M-Ethernet. Switch to 100M-Ethernet, the command is
sudo itead-ethernet emac
Switch to 1000M-Ethernet, the command is sudo itead-ethernet gmac
To use Segnix in Python
Create a new file named blink.py which reads as follow:
- ! /usr/bin/env python
from iteadsdk import * LED = PG9 pinMode(LED, OUTPUT) while True:
digitalWrite(LED, HIGH) delay(1000) digitalWrite(LED, LOW) delay(1000)
#! /usr/bin/env python from iteadsdk import * R1 = PG9 pinMode(R1, OUTPUT) digitalWrite(R1, HIGH)