Skip to content

Instantly share code, notes, and snippets.

@Kazu-zamasu
Created June 16, 2015 16:17
Show Gist options
  • Save Kazu-zamasu/a6f141bc188ffa33940d to your computer and use it in GitHub Desktop.
Save Kazu-zamasu/a6f141bc188ffa33940d to your computer and use it in GitHub Desktop.
/************************************ Pinfef1114.h *******************************/
DigitalOut FWD1(dp15); // the are the motor 'H' bridge drive signals
DigitalOut REV1(dp16); // when the volume controll motor is not being driven
//DigitalOut REV1(p11); // they are all OFF
//DigitalOut REV2(p13);
DigitalOut muteout(dp17); // drives the mute relay via a mosfet or transistor
InterruptIn mute_int(dp6); // mute p/button interrupt
DigitalIn mute(dp6); // mute input from associated pushbutton
InterruptIn rc5int(dp1); // this is the R/C interrupt triggered by the IRx data out
DigitalIn rc5dat(dp1); // data is read in from here - its coming from the IRx data out
InterruptIn select_int(dp28); // select rotary encoder interrupt - we use the 'A' O/P to generate the interrupt
DigitalIn sela(dp28); // select input rotary enc input A
DigitalIn selb(dp27); // select input rotary enc input B
DigitalIn stdby(dp26); // standby function p/button input
InterruptIn stdby_int(dp26); // standby p/button interrupt in
InterruptIn recloop_int(dp5); //record loop interrupt
DigitalIn recloop_in(dp5); // record loop p/button input
DigitalOut recloop_out(dp18); // drives record loop relay via mosfet or transistor
DigitalOut power_ind(dp25); // this pin drives the standby controller - LOW = OFF; use regulators with standby inpu
BusOut select_drv(dp9, dp10, dp11, dp13, dp14); //these are the select relay drivers
// note that we do not explicitly define the input select output ports because we just move the active
// output port bit around in a continuos loop with each depress of the select button. Drive the associated
// input relays via a mosfet or transistor
// DigitalOut myled(LED1); // for test purposes only - on the mbed module - comment out when not used
// DigitalOut myled2(LED2);
// DigitalOut sync(p29); //this is a sync pin that is toggled during IR read - used for debug only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment