Iteaduino: Difference between revisions
From Futuragora Wiki
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
https://github.com/itead/Segnix | https://github.com/itead/Segnix | ||
<pre> | |||
Iteaduino Plus A10 Interface | |||
1*10/100M Ethernet | |||
1*SATA with External Power Jack | |||
1*Micro-SD | |||
1*HDMI | |||
4*36pin GPIO | |||
2*USB HOST | |||
1*Mini USB OTG | |||
1*Micro USB ?with 5V power supply) | |||
1*FOCA | |||
4*Grove | |||
1*26pin Rasberry Pi compatible interface | |||
1*3.5mm Audio Input | |||
1*3.5mm Audio Output | |||
</pre> | |||
==Network problem== | ==Network problem== | ||
Line 18: | Line 35: | ||
sudo itead-ethernet gmac | sudo itead-ethernet gmac | ||
===Iteaduino Code== | ==script== | ||
nano /etc/apt/sources | |||
deb http://archive.debian.org/debian/ wheezy main contrib non-free | |||
scp -r -P 6431 asdasda | |||
removescreensaver | |||
==Iteaduino Code== | |||
====Relay1==== | ====Relay1==== | ||
<pre> | <pre> |
Latest revision as of 03:56, 16 July 2019
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
Iteaduino Plus A10 Interface 1*10/100M Ethernet 1*SATA with External Power Jack 1*Micro-SD 1*HDMI 4*36pin GPIO 2*USB HOST 1*Mini USB OTG 1*Micro USB ?with 5V power supply) 1*FOCA 4*Grove 1*26pin Rasberry Pi compatible interface 1*3.5mm Audio Input 1*3.5mm Audio Output
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
script
nano /etc/apt/sources deb http://archive.debian.org/debian/ wheezy main contrib non-free scp -r -P 6431 asdasda removescreensaver
Iteaduino Code
Relay1
#include <itead.h> int pin=138; int main() { pinMode(138, OUTPUT); digitalWrite(pin, HIGH); }
#include <itead.h> int pin=138; int main() { pinMode(138, OUTPUT); digitalWrite(pin, LOW); }
Blink Test
#include <itead.h> int pin=138; int main() { pinMode(138, OUTPUT); while(1) { digitalWrite(pin, HIGH); delay(1000); digitalWrite(pin, LOW); delay(1000); } }
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)