You are reading a single comment by @StuntMonkeh and its replies. Click here to read the full conversation.
  • I figured I must have sent the RFM12B module some commands that must have caused it to jump into life.

    I have tried sending just the first two commands and then manually sending the rest. No luck. I have had a look at different uses in other projects, all wired the same way. No reset pin.

    I had another go tonight, starting from scratch rewiring all over again but I'm back square one with the IRQ line just being triggered high as soon as I send (0x0000).

    I tried just sending the first two commands

    setWatch(function() {
      console.log("IRQ State");
      // do next stuff
    }, B9, {edge:"both", repeat:true});
    
    function XFER(cmd) {
      SPI1.send([cmd>>8,cmd], B8);
    }
    
    SPI1.setup({sck:B3,miso:B4,mosi:B5}); // setup SPI
    
    function init(){
      XFER(0x0000);
      XFER(0x8205);
    }
    
About

Avatar for StuntMonkeh @StuntMonkeh started