News:

Let's find out together what makes a PIC Tick!

Main Menu

Possible compiler error

Started by DaveS, Today at 07:53 PM

Previous topic - Next topic

DaveS

Possible compiler error

file in New Samples\PWM RGB LEDs.bas
Doesn't compile unless the line continuation char _ is removed

Proc GetSin(pValue As Byte), Byte
    pValue = pValue & %01111111            ' Make sure only 7-bits are present
    Result = LookUp pValue,[16,17,17,18,19,20,20,21,22,22,23,24,24,25,26,26,27,27,28,28,28,29,29,_
                        30,30,30,30,31,31,31,31,31,31,31,31,31,31,31,30,30,30,30,29,29,28,28,_
                        28,27,27,26,26,25,24,24,23,22,22,21,20,20,19,18,17,17,16,15,15,14,13,_
                        12,12,11,10,10,09,08,08,07,06,06,05,05,04,04,04,03,03,02,02,02,02,01,_
                        01,01,01,01,01,01,01,01,01,01,02,02,02,02,03,03,04,04,04,05,05,06,06,_
                        07,08,08,09,10,10,11,12,12,13,14,15,15]
EndProc

DaveS

▲