Page 1 of 1

pic.h

PostPosted: Fri Nov 02, 2018 1:59 am
by Choon
what is pic.h ? I found this in the LSA08 ir sensor code.
#include <pic.h>
where to download the library?

Re: pic.h

PostPosted: Fri Nov 02, 2018 10:41 am
by Idris
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.

Re: pic.h

PostPosted: Fri Nov 02, 2018 12:00 pm
by Choon
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

Re: pic.h

PostPosted: Fri Nov 02, 2018 12:10 pm
by ober
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.