Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. can´t upload my sketches anymore!!!

can´t upload my sketches anymore!!!

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    siod
    wrote on last edited by
    #1

    aftrer a while I tried to set up some nodes but I have problems to upload code to a new node which I already used in the past successfully. Right now I am using the latest arduino IDE 1.6.7. Here is my code:

    // Simple binary switch example 
    // Connect button or door/window reed switch between 
    // digitial I/O pin 3 (BUTTON_PIN below) and GND.
    
    #include <MySensor.h>
    #include <SPI.h>
    #include <Bounce2.h>
    
    #define CHILD_ID 1
    #define BUTTON_PIN  8  // Arduino Digital I/O pin for button/reed switch
    
    MySensor gw;
    Bounce debouncer = Bounce(); 
    int oldValue=-1;
    
    // Change to V_LIGHT if you use S_LIGHT in presentation below
    MyMessage msg(CHILD_ID,V_TRIPPED);
    
    void setup()  
    {  
      gw.begin();
    
     // Setup the button
      pinMode(BUTTON_PIN,INPUT);
      // Activate internal pull-up
      digitalWrite(BUTTON_PIN,HIGH);
      
      // After setting up the button, setup debouncer
      debouncer.attach(BUTTON_PIN);
      debouncer.interval(5);
      
      // Register binary input sensor to gw (they will be created as child devices)
      // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. 
      // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
      gw.present(CHILD_ID, S_DOOR);  
    }
    
    
    //  Check if digital input has changed and send in new value
    void loop() 
    {
      debouncer.update();
      // Get the update value
      int value = debouncer.read();
     
      if (value != oldValue) {
         // Send in the new value
         gw.send(msg.set(value==HIGH ? 1 : 0));
         oldValue = value;
      }
    } 
    
    

    and here the errors I get:

    
    
    
    
    
    
    
    
    
    
    WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:144:9: error: prototype for 'uint8_t SPIFlash::readByte(uint32_t)' does not match any in class 'SPIFlash'
    
     uint8_t SPIFlash::readByte(uint32_t addr) {
    
             ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:79:11: error: candidate is: uint8_t SPIFlash::readByte(long int)
    
       uint8_t readByte(long addr);
    
               ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:155:6: error: prototype for 'void SPIFlash::readBytes(uint32_t, void*, uint16_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::readBytes(uint32_t addr, void* buf, uint16_t len) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:80:8: error: candidate is: void SPIFlash::readBytes(long int, void*, word)
    
       void readBytes(long addr, void* buf, word len);
    
            ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:214:6: error: prototype for 'void SPIFlash::writeByte(uint32_t, uint8_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::writeByte(uint32_t addr, uint8_t byt) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:81:8: error: candidate is: void SPIFlash::writeByte(long int, uint8_t)
    
       void writeByte(long addr, uint8_t byt);
    
            ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:228:6: error: prototype for 'void SPIFlash::writeBytes(uint32_t, const void*, uint16_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:82:8: error: candidate is: void SPIFlash::writeBytes(long int, const void*, uint16_t)
    
       void writeBytes(long addr, const void* buf, uint16_t len);
    
            ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:263:6: error: prototype for 'void SPIFlash::blockErase4K(uint32_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::blockErase4K(uint32_t addr) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:85:8: error: candidate is: void SPIFlash::blockErase4K(long int)
    
       void blockErase4K(long address);
    
            ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:272:6: error: prototype for 'void SPIFlash::blockErase32K(uint32_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::blockErase32K(uint32_t addr) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:86:8: error: candidate is: void SPIFlash::blockErase32K(long int)
    
       void blockErase32K(long address);
    
            ^
    
    exit status 1
    Error compiling.
    Invalid library found in T:\Programme\Arduino\libraries\WIZ_Ethernet_Library: T:\Programme\Arduino\libraries\WIZ_Ethernet_Library
    

    can you help?? Thank you guys!!

    still learning...

    1 Reply Last reply
    0
    • S Offline
      S Offline
      siod
      wrote on last edited by
      #2

      solved, pls close

      still learning...

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LastSamurai
        Hardware Contributor
        wrote on last edited by LastSamurai
        #3

        Perhaps you could also add a short description how you solved it before this gets closed. Might safe someone the time later on.

        1 Reply Last reply
        1
        • S Offline
          S Offline
          siod
          wrote on last edited by
          #4

          I had to re-download and reinstall the complete 1.5 library what solved the issue. Don´t know what happened but that helped! Just the quick and dirty way...

          still learning...

          1 Reply Last reply
          1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          61

          Online

          12.0k

          Users

          11.2k

          Topics

          113.4k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular