Tactile Bits in OpenScad

Tactile Bits in OpenScad

Description

I've been programming for quite a few years now, and since the beginning of time (programming my Commodore P.E.T.), I could not remember binary bit patterns to save my life! This thing gives me the ability to print out binary representations of numbers. That gives me something nice and tactile that I can look at, pick up, and play around with. Perhaps if I had this as a toy when I was younger, I would not have such problems remembering binary encodings because the memories would have been cemented in something physical. Within the test_boolean.scad file, you will find the module: display_binary(number, bits, withplate) You give it a number, and the number of bits you want to display, and whether you want a base plate attached or not. And out comes your binary representation of your number. If you care to look deeper, you can take a look at the boolean.scad file. In there you will find some useful bit banging operators like RSHIFT, LSHIFT, BIT, BTEST, 32BITAND, 32BITNOT, 32BITXOR, 32BITOR, and other boolean algebra thingies. These might be useful for other things some day. In particular, you could perform an operation, and print the result of the operation tactally.

Statistics

Likes

18

Downloads

1568

Category

Other