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

답글 남기기

아래 항목을 채우거나 오른쪽 아이콘 중 하나를 클릭하여 로그 인 하세요:

WordPress.com 로고

WordPress.com의 계정을 사용하여 댓글을 남깁니다. 로그아웃 /  변경 )

Google photo

Google의 계정을 사용하여 댓글을 남깁니다. 로그아웃 /  변경 )

Twitter 사진

Twitter의 계정을 사용하여 댓글을 남깁니다. 로그아웃 /  변경 )

Facebook 사진

Facebook의 계정을 사용하여 댓글을 남깁니다. 로그아웃 /  변경 )

%s에 연결하는 중

This site uses Akismet to reduce spam. Learn how your comment data is processed.