keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

tutorial_5b_LED_on_IOE.md 1.3KB

12345678910111213141516171819202122232425262728293031323334
  1. Tutorial 5b - indicator LED on IOE
  2. ==================================
  3. This tutorial will show you how to add LEDs to an I/O expander.
  4. It is assumed the reader is familiar with LEDs from tutorial_5a_LED_on_uC.md
  5. and familiar with I/O expanders from tutorial_4c_split_keyboard_with_IOE.md.
  6. Adding LEDs to the basic breadboard keyboard
  7. --------------------------------------------
  8. The breadboard keyboard modifies the split breadboard keyboard described in [tutorial_4c_split_keyboard_with_IOE.md](tutorial_4c_split_keyboard_with_IOE.md)
  9. Add components to the breadboard as shown in the picture.
  10. The two clear plastic cylinders are red and yellow LEDs.
  11. Each LED is in series with a 4.7k Ohm current limiting resistor.
  12. LED anodes (the longer lead) are powered by pins GPA5 and GPB4.
  13. LED cathodes (the shorter lead) are connected to a grounded terminal strip.
  14. !["front"](keybrd_5b_LED_on_IOE/front.JPG "front")
  15. !["back"](keybrd_5b_LED_on_IOE/back.JPG "back")
  16. !["LEDs"](keybrd_5b_LED_on_IOE/LEDs.JPG "LEDs")
  17. keybrd sketch with LEDs on IOE
  18. ------------------------------
  19. The [keybrd_5b_LED_on_IOE.ino](keybrd_5b_LED_on_IOE/keybrd_5b_LED_on_IOE.ino) sketch will run on the above breadboard keyboard.
  20. The sketch features:
  21. * multiple layers
  22. * split keyboard
  23. * LED on controller
  24. * LED on IOE write port
  25. * LED on IOE read port