Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem mbed
Fork of PES4_Programme by
source/functions.cpp
- Committer:
- aeschsim
- Date:
- 2018-03-27
- Revision:
- 23:79638b0e9b16
- Parent:
- 22:828b393dff51
- Child:
- 24:da1af5214804
File content as of revision 23:79638b0e9b16:
#include "functions.h" void setLED(char button, uint32_t color) { float red = ((color >> 16) & 0xff)/2.55; float green = ((color >> 8) & 0xff)/2.55; float blue = (color & 0xff)/2.55; } void setValvePosition(char pos) { switch(pos) { case 0: // neutrale Position setPWM(0, 50); break; case 1: // Glas setPWM(0, 100); break; case 2: // Auswurf setPWM(0, 0); break; } } void setSpeed(char container, char direction) { //nur zum kompilieren!! //setPWM(container,direction); } bool controlPosition(char container) { return 0; } int getServoAngle(char container) { return 0; }