Montag, 11. August 2014

Arduino and the Time.h library error

Hey,

so you wanna use your Arduino with the time library and get the
"error: variable ‘monthNames_P’ must be const in order to be put into read-only section by means of [...]"
message?
No problem! Open your Time-library folder ( f.e. ~/sketchbook/libraries/Time ) and edit the DateStrings.cpp - or just type in the terminal:
nano ~/sketchbook/libraries/Time/DateStrings.cpp
Replace the following lines:
41: PGM_P monthNames_P[] PROGMEM =
58: PGM_P dayNames_P[] PROGMEM =
59: char dayShortNames_P[] PROGMEM = 

with
41: PGM_P const PROGMEM monthNames_P[] =
58: PGM_P const PROGMEM dayNames_P[] =59: const char dayShortNames_P[] PROGMEM =

save, and your sketch should compile without the error above :-)

Good luck!

Freitag, 7. März 2014

Canon MP495 refill reset / Error P08

Hey guys,

let's say, you refilled your cartridge and all of a sudden, your printer doesn't want to print anymore or the pages come out absolutely white... It's time to reset the printer with the following steps (thanks to http://canonmp495error5200.blogspot.de/2012/06/question-how-to-resolve-critical-error.html):

  1. Unplug the printer from power and wait 5 sec then plug it back in.
  2. Press "Stop/Reset" button for 2 sec and hold it.
  3. Now press and hold the "Power" button also with "Stop/Reset" for 5 sec.
  4. Release only "Stop/Reset" and wait for 2 sec (still holding "Power" button)
  5. Now press and release "Stop/Reset" 5 times.
  6. After 5 sec release "Power" button also (no LCD only power light is working).
  7. Wait for a minute (counting starts after step 6).
  8. Now power off the printer by pressing "Power" button.
  9. After 30 Seconds press "Power" button again. You are ready for printing NOW :-)
Please take the timing seriously (by counting in your head)!

Good luck.