Galileo Quark SoC X1000 Panduan Memulai - Halaman 14

Jelajahi secara online atau unduh pdf Panduan Memulai untuk Perangkat Keras Komputer Galileo Quark SoC X1000. Galileo Quark SoC X1000 20 halaman.

// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000);
// wait for a second
digitalWrite(led, LOW);
delay(1000);
// wait for a second
}
Make sure the Serial Port and Board selections are still correct (check the
for help). Then click the Upload button.
After the upload completes, you should see a tiny, green LED blinking on and off every second. This
LED is connected to pin 13 of the Galileo.

Troubleshooting

If you're having any trouble uploading code, or even updating the firmware, here are a few of the
hiccups we encountered, and how we fixed them.
In general, if you're having any trouble, try rebooting your Galileo (unplug everything, wait a few
seconds, plug back in, wait for the boot-up to complete) to see if it fixes it. If that doesn't work, try
rebooting your computer. Sometimes the magic reboot fixes everything.
Improper File Name (Mac)
On Mac, if you get an error like this:
i586-poky-linux-uclibc-g++: error: Galileo.app/Contents/Resources/Java/hardware/tools/x86/i586-poky-linux-uclibc: No
There may be a problem with the name of your application. Make sure there are no spaces! For
// turn the LED off by making the voltage LOW
such file or directory
Page 14 of 20
Updating Firmware page