Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

5 роки тому
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Pacman-Arduino-Due / Modified for Teensy 3.6 and T4.x
  2. Pacman Game for Arduino Due with tft ILI9341 and VGA output support
  3. Pacman Game on Arduino Due with ILI9341 and VGA support (available 2 outputs at the same time), playable with keypad, 5 sample levels, VGA output is 240x320, source code avaliable on Github, Licensed under MIT License.
  4. Original Pacman sketch modified to use a Teensy 3.6/T4 with ILI9341_t3n and USBHost_t36 libraries. Intended as demo for the incorporating BT or Serial gamepads such as the PS3 and PS4 into a user application.
  5. Originally posted on:
  6. Arduino Forum:
  7. http://forum.arduino.cc/index.php?topic=375394.0
  8. Video:
  9. https://www.youtube.com/watch?v=2Hdzr6m4QdU
  10. <pre>
  11. /******************************************************************************/
  12. /* */
  13. /* PACMAN GAME FOR TEENSY */
  14. /* */
  15. /******************************************************************************/
  16. /* Copyright (c) 2014 Dr. NCX (mirracle.mxx@gmail.com) */
  17. /* */
  18. /* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL */
  19. /* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED */
  20. /* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR */
  21. /* BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES */
  22. /* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, */
  23. /* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
  24. /* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS */
  25. /* SOFTWARE. */
  26. /* */
  27. /* MIT license, all text above must be included in any redistribution. */
  28. /******************************************************************************/
  29. /* Original Pacman sketch modified to use a Teensy 3.6/T4 with ILI9341_t3n */
  30. /* and USBHost_t36 libraries. Intended as demo for the incorporating BT */
  31. /* or Serial gamepads such as the PS3 and PS4 into a user application. */
  32. /* The original version for the Arduino Due and SNES controllers can be */
  33. /* found at */
  34. /* https://forum.arduino.cc/index.php?topic=375394.0 */
  35. /* and */
  36. /* https://github.com/DrNCXCortex/Pacman-Arduino-Due */
  37. /* */
  38. /******************************************************************************/
  39. /* ILI9341: */
  40. /*----------------------------------------------------------------------------*/
  41. /* 8 = RST */
  42. /* 9 = D/C */
  43. /* 10 = CS */
  44. /* can be changed at user discretion */
  45. /*----------------------------------------------------------------------------*/
  46. /*----------------------------------------------------------------------------*/
  47. /* KEYPAD: */
  48. /*----------------------------------------------------------------------------*/
  49. /* PS3: button START/Pause */
  50. /* button SELECT */
  51. /* button A/Diamond */
  52. /* button B /Circle */
  53. /* button UP */
  54. /* button DOWN */
  55. /* button LEFT */
  56. /* button RIGHT */
  57. /* */
  58. /* PS4: button START/Pause = Share on PS4 */
  59. /* button SELECT = Options on PS4 */
  60. /* button A/Square */
  61. /* button B /Circle */
  62. /* button UP */
  63. /* button DOWN */
  64. /* button LEFT */
  65. /* button RIGHT */
  66. /* *//******************************************************************************/
  67. </pre>