OneWire library won't compile under WorkBench

I created a fresh "empty" project on WorkBench and added the OneWire library.
It won't compile. The HAL_Pin_Mode macro used in the OneWire.h file is not defined.

home/terje/Projects/ManseLTE/lib/OneWire/src/OneWire.h:136:7: error: 'HAL_Pin_Mode' was not declared in this scope
  136 |       HAL_Pin_Mode(_pin, OUTPUT);

What device are you using?

In any case, it appears that the library is not currently compatible with Device OS 6.x. You can either target Device OS 5.9.0, or use the instructions for using a locally modified library and just change HAL_Pin_Mode to pinMode, which I think will allow it to compile.

Rick,

thanks for the help! I'm using a Boron 404X. I guess I should try the same OS version (4.2.0) as what the WEB IDE defaults to. At any rate, your help will get me passed this problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.