#!/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();
갈릴레오에 풀 버전 데비안 리눅스를 깔자 (apt-get 사용 가능)
// 2014.03.08
갈릴레오 데비안리눅스세팅 최종 버전 참조
계속해서 업데이트 예정…
갈릴레오에 관한 유용한 정보를 얻고 싶다면 Intel Makers 커뮤니티를 이용하자.