Datasheet

Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
Hardware functions
This chapter shows how to control the hardware of Flyport: the digital IOs, the analog inputs, how to create
PWM and how to communicate with other devices or peripherals.
QUESTION: Usually, to control the hardware of an embedded device it is required to know specific registers
and how change them. Is this true also for Flyport?
No, the openPicus Framework gives you a set of instructions to control the hardware of Flyport without
needing knowledge of the microcontroller hardware registers.
Digital Inputs and Outputs
Flyport provides lot of Digital Input/output pins to control devices such as Led, Relay, buttons and
more.
Voltage level: The microcontroller works at 3.3V so digital pins are working at 3.3V level.
5V tolerant inputs: some input pins are 5V tolerant, check on the pinout table before connecting!
QUESTION: How are Flyports pins named?
When you are writing your application you can refer to the Flyport pin directly: pn, where n is a
number that refers to the corresponding pin number on the Flyport connector.
Example:
#include "taskFlyport.h"
void FlyportTask()
{
IOInit(p5,out); //Initialize pin 5 as digital output
IOInit(p6,in); //Initialize pin 5 as digital input
while (1)
{
// MAIN LOOP
}
}
11