Page 1 of 1

Source code editing(PR16)

PostPosted: Mon Aug 30, 2010 2:26 pm
by fazwan_2801
for this DIY project(sending data using RF module)..I want to add a 4 way DIP switch to the transmitter and receiver..but in what part do the source code need to be edited for the switch to operate?
can admin or anybody can help me please...huhu :(

Re: Source code editing(PR16)

PostPosted: Mon Aug 30, 2010 2:56 pm
by hyng
Please post your topic in the correct forum.
viewforum.php?f=16

Re: Source code editing(PR16)

PostPosted: Mon Aug 30, 2010 3:03 pm
by ober
Moved to be under DIY Project set.

Microcontroller project require understanding of both hardware and software. To add 4 switches to this DIY project, modification on circuit is essential.

As for the software, PIC require the setting of Input and Output for each pin, which can be done through TRISx (x refer to the port uses), further is to check whether to status of switch changes and act accordingly.