Newbie to pic but not electronics


Results 1 to 19 of 19

Threaded View

  1. #15
    Join Date
    Jul 2007
    Posts
    67


    Did you find this post helpful? Yes | No

    Default

    Here's a better constructed code I made then the one up

    Button var PORTB.0 ' Push button
    LED1 var PORTB.1 ' Led 1
    LED2 var PORB.2 ' Led 2
    Pushed var byte ' Variable will contain the byte
    If PUSHED =1 Then ' If button is push
    High LED1 ' Turn on the LED
    IF PUSHED=0 Then
    High LED2

    Endif
    Last edited by Techbuilder; - 12th July 2007 at 23:44.

Similar Threads

  1. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  2. Replies: 14
    Last Post: - 26th September 2007, 05:41
  3. PIC to PC newbie
    By Michael in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 19th June 2007, 01:07
  4. PIC Newbie
    By azmax100 in forum Schematics
    Replies: 7
    Last Post: - 23rd February 2007, 04:52
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts