You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ---- Vbuddy user functions// Open Vbuddy device, port path specified in vbuddy.cfg// ... return 1 if successful, else return <0 if failintvbdOpen();
// Close an opened Vbuddy devicevoidvbdClose();
// Clear the TFT screen to blackvoidvbdClear();
// Display 4-bit binary value in v on a 7 segment display// ... digit is from 1 (right-most) to 5 (left most)voidvbdHex(int digit, int v);
// Plot y value scaled between min and max on TFT screen on next x coord.// ... When x reaches 240, screen is cleare and x starts from 0 again.voidvbdPlot(int y, int min, int max);
// Write header at top of TFT, centre justifiedvoidvbdHeader(constchar* header);
// Report the cycle count on bottom right of TFT screenvoidvbdCycle(int cycle);
// Return current Flag valueboolvbdFlag();
// Set Flag mode: 0 - toggle, 1 - one-shotvoidvbdSetMode (int mode);
// Return parameter value on Vbuddy set by the rotary encoderintvbdValue();
// Initialise DAC output buffer with N samplesvoidvbdInitAnalogOut(int Nsamp);
// Output a sample to Vbuddy DAC buffervoidvbdOutputSample(int sample);
// Turn analog output ONvoidvbdAoutON();
// Turn analog output OFFvoidvbdAoutOFF();
// Initialise microphone buffer to capture N samplesvoidvbdInitMicIn(int Nsamp);
// get next sample from microphone bufferintvbdMicValue();
// Return 0 if no key is pressed, otherwise return ASCII code of key // ... this function is non-blocking and does not actually use VbuddycharvbdGetkey();
// Initialise an internal stop watch in msec on VbuddyvoidvbdInitWatch();
// Returns elapsed time in msec since last vbdInitWatch() callintvbdElapsed();
// ---- End of Vbuddy User Function declarations