Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.63 KB

logic.md

File metadata and controls

49 lines (39 loc) · 1.63 KB

Logic

This program implements six digital logic operations, with each operation's result sent to a different output jack.

  • din: the first boolean input. Holding down b1 is equivalent to applying voltage to din.
  • ain: the second boolean input; any signal above 0.8V is treated as ON, anything below that is OFF. (Note: this is the same voltage threshold used on the digital input.) Holding b2 is equivalent to applying voltage to ain.
  • cv1: ain AND din
  • cv2: ain OR din
  • cv3: ain XOR din
  • cv4: ain NAND din
  • cv5: ain NOR din
  • cv6: ain XNOR din

The outputs are as follows:

Output No. Operation
Out 1 AND
Out 2 OR
Out 3 XOR
Out 4 NAND
Out 5 NOR
Out 6 XNOR

The following table shows the value for each operation for every input combination:

Din Ain AND OR XOR NAND NOR XNOR
0 0 0 0 0 1 1 1
0 1 0 1 1 1 0 0
1 0 0 1 1 1 0 0
1 1 1 1 0 0 0 1

The screen will go to sleep after 20 minutes of inactivity. Pressing either button will wake the screen up.

The knobs are not used in this program.

Note on button interaction

Holding both buttons for a few seconds will send the reboot signal to the module, forcing the module to return to the main menu. For this reason it is recommended to use only one button at a time when using the logic module performatively.