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:
- EHess
- Date:
- 2018-03-26
- Revision:
- 22:828b393dff51
- Parent:
- 17:bbafd216e059
- Child:
- 23:79638b0e9b16
File content as of revision 22:828b393dff51:
#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) {} bool controlPosition(char container) { return 0; } int getServoAngle(char container) { return 0; }