Skip to content

Instantly share code, notes, and snippets.

/vs-c3 main.cpp Secret
Created Apr 25, 2016

Embed
What would you like to do?
#include "mbed.h"
#include "PS_PAD.h"
DigitalOut led(LED1);
PS_PAD vsc3(PB_15, PB_14, PB_13, PC_8);
int main() {
led = 0;
vsc3.init();
while(1){
vsc3.poll();
led = vsc3.read(PS_PAD::PAD_LEFT);
wait(0.05);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.