Difference between revisions of "Arduinos in Space"

From Wiki in Space
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[https://bitbucket.org/pjhardy/arduinosinspace/src/master/ Arduinos in Space] is an Arduino library to interface with Objects in Space. It aims to provide a high level, Arduino-like interface while still being powerful and flexible.
 
[https://bitbucket.org/pjhardy/arduinosinspace/src/master/ Arduinos in Space] is an Arduino library to interface with Objects in Space. It aims to provide a high level, Arduino-like interface while still being powerful and flexible.
  
== Getting started ==
+
Arduinos in Space is an open source library, that was neither written nor supported by Flat Earth.
  
=== Requirements ===
+
== Arduinos in Space resources ==
  
Any Arduino-compatible board should work. The Hello World sketch below needs a board with a built-in LED. All genuine Arduino/Genuino boards have one, as well as most Arduino-compatible boards.
+
* [[Arduinos in Space Getting Started|Getting started]]
 +
* [[Arduinos in Space Hello World|Hello World]]
 +
* [[Arduinos in Space Concepts]]
 +
* [[Arduinos in Space API]]
  
=== Installation ===
+
== Resources elsewhere ==
  
The library is not (yet) available through the Arduino Library Manager, so must be installed manually.
+
Arduinos in Space comes with several example sketches illustrating basic usage. These are available in the Arduino IDE under File -> Examples -> Arduinos in Space.
 
 
# Download the most recent release from the [https://bitbucket.org/pjhardy/arduinosinspace/downloads/ downloads section] of the library repository on Bitbucket.
 
# Open the Arduino IDE, and navigate to Sketch -> Include Library -> Add .ZIP Library...
 
# Select the zip file previously downloaded.
 
 
 
=== Hello World ===
 
 
 
First, ensure Objects in Space is configured to talk to hardware, following the directions in [[Getting started with hardware]].
 
 
 
Open the Arduino IDE, create a new sketch (File -> New), and enter the following code:
 
 
 
<nowiki>#include "ArduinosInSpace.h"
 
 
 
ObjectsInSpace OIS(Serial, 1, 0);
 
 
 
void setup() {
 
  Serial.begin(9600);
 
  OIS.begin();
 
 
 
  OIS.registerBool(EMCON_MODE, LED_BUILTIN);
 
 
 
  OIS.activate();
 
}
 
 
 
void loop() {
 
  OIS.update();
 
}
 
</nowiki>
 
 
 
Save this (call it something like "HelloWorld", then build and upload to your board. With the board still connected, ensure the Arduino serial monitor is ''not'' running, and launch Objects in Space. All going well, the game will open a connection to your board, and the built-in LED on your board will turn on to indicate when EMCON mode is active.
 
  
 
[[Category:ArduinosInSpace]]
 
[[Category:ArduinosInSpace]]

Latest revision as of 12:57, 15 August 2018

Arduinos in Space is an Arduino library to interface with Objects in Space. It aims to provide a high level, Arduino-like interface while still being powerful and flexible.

Arduinos in Space is an open source library, that was neither written nor supported by Flat Earth.

Arduinos in Space resources

Resources elsewhere

Arduinos in Space comes with several example sketches illustrating basic usage. These are available in the Arduino IDE under File -> Examples -> Arduinos in Space.