Readowsn values in simulator

lauriet

Member
I would like to check if an iButton has been detected, in the simulator.
I cannot see a way of setting values for the variables this would write to.

Is there a way of doing this? Or another strategy?

Many thanks.
Lauriet
 

Technical

Technical Support
Staff member
Use this:

Code:
[color=Navy]#ifdef [/color][color=Blue]simulating
      [/color][color=Purple]b6 [/color][color=DarkCyan]= [/color][color=Navy]$10
      [/color][color=Purple]b7 [/color][color=DarkCyan]= [/color][color=Navy]$12
      [/color][color=Black]etc.[/color]
[color=Navy]#else
      [/color][color=Blue]readowsn C.1[/color]
[color=Navy]#endif[/color]
 

lauriet

Member
Very many thanks.

And also - Wha ?
That works, but I don't (currently) understand why.
Is '#ifdef' and 'simulating' documented?
This has possibilities.

Lauriet.
 
Top