dodger2020
Senior member
- Mar 6, 2009
- 256
- 1
- 76
Interesting.....There are only a few basic code samples from their site...
Also thought this was interesting
Code:
#include "stdafx.h"
#include "arduino.h"
int _tmain(int argc, _TCHAR* argv[])
{
return RunArduinoSketch();
}
int tempPin = -1; // The on-board thermal sensor
void setup()
{
}
// the loop routine runs over and over again forever:
void loop()
{
float temperatureInDegreesCelcius = 1.0f; // Storage for the temperature value
temperatureInDegreesCelcius = (float) analogRead(tempPin) / 4.0f; // reads the analog value from this pin
Log(L"Temperature: %lf\n", temperatureInDegreesCelcius);
Sleep(100); // Provides a delay for our visual pleasure
}
Also thought this was interesting
Q: What is the status of the Arduino/Wiring API implementation?
A: Our goal is to make it possible to take Arduino sketches and run them unchanged (or with very minimal changes) on the Galileo. Through our open source approach to development, the community will be able to participate to contribute code to help fill gaps and add functionality.
Last edited: