Useful tips for Intel Galileo

Intel Galileo Specification

Before you buy a Galileo

Intel Galileo Meets Wireless

Troubleshooting issues with booting Linux from SD Card

Connecting to Galileo via Linux Console

Programming GPIO From Linux

Coding with Python

#!/usr/bin/env python
import sys

galileo_path = "/media/mmcblk0p1/";
if galileo_path not in sys.path:
    sys.path.append(galileo_path);

from pyGalileo import *

'''/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.
 */
 '''

#// the setup routine runs once when you press reset:
def setup():
    pinMode(led, OUTPUT);     

def loop():
    digitalWrite(led, HIGH);   #// turn the LED on (HIGH is the voltage level)
    delay(1000);               #// wait for a second
    digitalWrite(led, LOW);    #// turn the LED off by making the voltage LOW
    delay(1000);               #// wait for a second

#When the file is run from the command line, this fucntion will execute.
#This function just calls setup once, then calls loop over and over. 
if __name__ == "__main__":
    led = 13;
    setup();
    while(1):
        loop();

How to install full featured Linux on Galileo (apt-get available)

// added on 2014.03.08.
See also final version running Debian Linux with GPIO controlled by python.

 

If you want to get more information about Galileo, keep watching on Makers Community

댓글 남기기

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.