doc-helmut wrote:I wish you a speedy recovery!
I doubt that NXC will let you define a 1 bit variable. The smallest "normal" variable is a byte (8 bits). However, when building an I/O (or storage buffer), you can mash them together. I did a database many years ago where disk space was expensive and I packed variables based on the number of bits that could actually be used. So, for instance, dates were packed: month took 4 bits, day of month took 5 bits, etc. Boolean flags took only 1 bit. You can store a lot of data in a small space when you do that. I've got 30 years worth of checkbook entries packed into 445KB.nxtboyiii wrote:Is it possible to make a variable a bit? Like it is 1 or 0?
If so, could you add that?
Users browsing this forum: No registered users and 1 guest