No need for flames here please.
We are on this forum to help and not hurt each other.
Especially with the season coming...
Ioannis
Type: Posts; User: Ioannis; Keyword(s):
No need for flames here please.
We are on this forum to help and not hurt each other.
Especially with the season coming...
Ioannis
If the chip is the MAX30102, on page 16 seems that reading needs first a write.
Ioannis
Well, if that compiler could do floating, maybe it could be used. But in PBP integer math? I do not think so. You need what Richard did as a workaround.
Ioannis
OK, I see.
So, if you want to move the trackbar to position $28 you will use
HserOut [$01,$05,$00,$00,$28,$2C]
and the slider will goto position $28.
The number is just the same either hex, binary or decimal. 128 is the same as %10000000 or $80. You show it in different way.
The trackbar object, what exactly is?
Ioannis
The msb and lsb in your display string what are exactly? Ascii values or binary?
And being msb and lsb, I understand that these two construct a word value. For what purpose? Your display for...
If your variable is ranging from 0 to 65536 (the maximum that word can hold) obviously the HSEROUT command cannot handle that. With HSEROUT you can use only ascii values.
So, as you have already...
Or use DEC modifier like DEC k. If k=5, DEC k will send out the "5".
With DEC you can also specify how many digits you will send. E.g. DEC3 will send 3 digit of the variable with the appropriate...