Hello friends. Look please at the following pictures. When I pass a 00 as parameter in i2csend as plain decimal number i have a compiler error. When i pass it as a hex 0x00 all is ok.
why? It shouldn't be. Like 12, 45, 123, 4323 etc, 00 it's only a number, it's zero, what's the difference when it is written 0x00 or 00 or 00000 or 0000000 etc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello friends. Look please at the following pictures. When I pass a 00 as parameter in i2csend as plain decimal number i have a compiler error. When i pass it as a hex 0x00 all is ok.
Last edit: sfyris 2023-08-04
See https://gcbasic.sourceforge.io/help/_more_on_setting_variables_and_constants.html
00
is an illegal number.why? It shouldn't be. Like 12, 45, 123, 4323 etc, 00 it's only a number, it's zero, what's the difference when it is written 0x00 or 00 or 00000 or 0000000 etc.
The compiler has a set of rules.
00
is not valid.When the compiler has a set of rules. This is one of them.