![]() ![]() Other is a clock thread that keeps track of, and displays, time since You can find more details on his excellent site: Īre two main executing threads, one is the main game thread and the Bruce Land has ported Protothreads over for Is a very light-weight, stackless, threading library written entirelyĪs C macros by Adam Dunkels. To organize the game, I've made use of the Protothreads threading library. State machine cycling through its states every few milliseconds, decidedīy the application calling the library functions. The library is written in the form of a simple Significantly slowed down to negate effects of capacitive charging by Provided to allow the outputs to stabilize. Every time the IO pin switches state, a long delay is X-, Y+ and Y- are connected to four GPIO pins on the PIC32 that areĬonfigured to outputs when driving the touch-screen and analog inputs Then Y+ and Y- areĪpplied power and one of X+ or X- is read to read the y-coordinate. One of Y+ or Y- is read to read the x-coordinate. In order to read the touch, the X+ and X- points are applied power, and ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |