I am working on a project trying to get the arduino to read in 10 digital inputs with shiftregisters and output a status that coresponds to a predetermined worded message which goes to a display, as well as updates a webserver with the status message. It also needs to read in some data ( 8 checkboxes) from a basic html page and use those checkboxes to set an 8 bit output register appropriately.
I never have taken any c++ or c coding classes, only some python and html.
I am having tons of trouble getting the arduino to read in the 2 shift registers. I have adapted some of the code from the shift in tutorial to it ( I am using 2 of the cd4021be). I can read it in as 2 bytes and compare it to preset values in the code with a case statement, but as soon as I let it run through all the case statements it freezes. I have tried if..else statments to compare to and they freeze the board as well. I'm not sure if I can change these 2 bytes into 1 string and use that as a 16 digit comparison which would make things easier.
Some of the ethernet code and output register code is set up as well, but its not all completed yet.
Please provide some help!!
I am still working but having trouble with the logic as well reading in the bytes and using them together to compare to one large 16 bit number that I have manually entered.