Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Robinek70
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by Robinek70

    • Robinek70

      C Definition in sketch to configure library
      Development • • Robinek70  

      6
      0
      Votes
      6
      Posts
      1052
      Views

      Robinek70

      full test files File in path Arduino/Test/ //test.ino #define MY_RADIO_NRF24 #define MY_USE_ADC_FILTER #include <RPlib.h> void setup() { } void loop() { Serial.println(getAdc()); } Files in path Arduino/libraries/RPlib/ //RPlib.h #ifndef MY_ADC_PIN #define MY_ADC_PIN A0 #endif #define DT_FILTER 10 int getAdc(); //RPlib.cpp #include <RPlib.h> #include <Arduino.h> static int prevValue; int getAdc() { int value = analogRead(MY_ADC_PIN); #ifdef MY_USE_ADC_FILTER #error FILTER prevValue = (prevValue *DT_FILTER + value) / (DT_FILTER + 1); #else #error NO FILTER prevValue = value; #endif return prevValue; } I always got #error NO FILTER
    • Robinek70

      [Solved] RF24 connection MySensors 2.0 doesn't works but 1.5.4 works
      General Discussion • • Robinek70  

      3
      1
      Votes
      3
      Posts
      942
      Views

      Robinek70

      It's me again, sorry that I bother you. I found problem so I just copy definition RF24_PA_LEVEL instead of MY_RF24_PA_LEVEL regards,