pic.h

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

pic.h

Postby Choon » Fri Nov 02, 2018 1:59 am

what is pic.h ? I found this in the LSA08 ir sensor code.
#include <pic.h>
where to download the library?
Choon
Greenhorn
 
Posts: 3
Joined: Thu Nov 01, 2018 5:37 pm

Re: pic.h

Postby Idris » Fri Nov 02, 2018 10:41 am

Hi Choon,

pic.h is for PIC microcontroller. You can search other tutorial link for Arduino.
- LSA08 Serial Mode With PID
- LSA08 Digital Mode
- LSA08 Analog Mode

Hope this help. Thanks.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

Re: pic.h

Postby Choon » Fri Nov 02, 2018 12:00 pm

I would like to use the digital mode. I'm using arduino uno and I want to use my own logarithm for that but my code fail to make it work.

void read_sensor_values()
{
sensor[0]=digitalRead(0);
sensor[1]=digitalRead(1);
sensor[2]=digitalRead(2);
sensor[3]=digitalRead(3);
sensor[4]=digitalRead(4);
sensor[5]=digitalRead(5);
sensor[6]=digitalRead(6);
sensor[7]=digitalRead(7);
Choon
Greenhorn

Posts: 2
Joined: Thu Nov 01, 2018 5:37 pm
Top
Post a reply
1 post • Page 1 of 1
Return to Sensor

Jump to:
WHO IS ONLINE
Choon
Greenhorn
 
Posts: 3
Joined: Thu Nov 01, 2018 5:37 pm

Re: pic.h

Postby ober » Fri Nov 02, 2018 12:10 pm

pic.h is meant for Hitech compiler for PIC microcontroller. You are using sample code compile under hitech and now is xc8. If you are using Arduino IDE, it is not compatible.

Source code is not 100% compatible between compiler. You will have to modify the code.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 5 guests