I tried dir PortA.4 In OR Out but got the same error message.
I have this in my code: define MFIO_Pin PortA.4 dir PortA.4 In|Out When I compile I get this error message: Oximeter_5.gcb (68): Error: Invalid pin direction, expected In or Out Oximeter_5.gcb (68): Error: Syntax Error Did I do what you suggested, correctly?
Thanks
I'm using a MAX32664/MAXMAX30101 with 18F4550 This boards requires changing the direction of a pin from OUTPUT to INPUT during the program. https://www.sparkfun.com/sparkfun-pulse-oximeter-and-heart-rate-sensor-max30101-max32664-qwiic.html Can GCB support this? If so how.
yes, it made sense.
Thanks! That worked
Correction When I run the code it says coef_0 = 16 not 17
I'm using: GCASM List File (GCBASIC 0.99.01 2022-01-27 (Windows 64 bit) : Build 1073) with an 18F4550. I wrote this simple code: dim coef_0 as word coef_0 = FnLSL(17, 4) print coef_0 When I run the code it says coef_0 = 17. I think it should be 272. What am I doing wrong?