View Single Post
Old 07-02-2013, 02:49 AM   #68 (permalink)
Occasionally6
Master EcoModder
 
Join Date: Apr 2013
Location: World
Posts: 385
Thanks: 82
Thanked 82 Times in 67 Posts
Quote:
Originally Posted by jeff88 View Post
Found it. Wow! How much of the void update () part to multiplex the display can I just copy and paste? Or do I need to add/subtract any of it?
I think you can pretty much copy that part straight over. The difference is going to be in getting the data in i.e. swapping the DHT11 sections for however the accel. and gyro. board inputs the data into the Arduino (datasheet for the board?), and in the void loop() where the display is done.

It might be useful for you to look at the included functions directly. You can do that by finding the relevant text in the Arduino library files.

What happens when an include is called is the compiler (pre-compiler) writes that part of the sketch in from the library as if you had written it explicitly. It can be a bit easier to follow with that copied into the sketch.

Quote:
I get the part about not using the weather station lines, but not sure what you mean by flashing the negative. Would it just flash a negative really fast before the number displays, like old fashion movie theater adverts?
If you look at the void loop() in the weather station sketch, the array lines for the degree, C, r, h etc. are used in between the numerals. eg.

digit1 = 11; // show 'degrees C' code
digit2 = 12;

You could do it the same way. (The line for the '-' is already in the weather station array at row 18 anyway.)
  Reply With Quote