Code Monkey home page Code Monkey logo

lgt8fx's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

beat-sound

lgt8fx's Issues

multiple errors with idleWakePeriodic

When trying example idleWakePeriodic with latest from master (commit 5c1bc02) on MacOS Arduino v2.1.0 board LGT8F328P-LQFP48 after addressing the issues in #1 I get:

/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:825:7: error: '_lgt8fx_delay_cycles' was not declared in this scope
       _lgt8fx_delay_cycles(4);         \
       ^
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:1051:29: note: in expansion of macro 'hfosc_up'
     if (hfosc == HFOSC_OFF) hfosc_up();    // Timed register value change sequence.
                             ^~~~~~~~
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:825:7: note: suggested alternative: '__builtin_avr_delay_cycles'
       _lgt8fx_delay_cycles(4);         \
       ^
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:1051:29: note: in expansion of macro 'hfosc_up'
     if (hfosc == HFOSC_OFF) hfosc_up();    // Timed register value change sequence.
                             ^~~~~~~~
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp: In member function 'void LowPowerClass::powerStandby(period_t, adc_t, bod_t, timer2_t, hfosc_t)':
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:825:7: error: '_lgt8fx_delay_cycles' was not declared in this scope
       _lgt8fx_delay_cycles(4);         \
       ^
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:1430:29: note: in expansion of macro 'hfosc_up'
     if (hfosc == HFOSC_OFF) hfosc_up();
                             ^~~~~~~~
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:825:7: note: suggested alternative: '__builtin_avr_delay_cycles'
       _lgt8fx_delay_cycles(4);         \
       ^
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:1430:29: note: in expansion of macro 'hfosc_up'
     if (hfosc == HFOSC_OFF) hfosc_up();
                             ^~~~~~~~
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp: In member function 'void LowPowerClass::powerExtStandby(period_t, adc_t, bod_t, timer2_t, hfosc_t)':
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:825:7: error: '_lgt8fx_delay_cycles' was not declared in this scope
       _lgt8fx_delay_cycles(4);         \
       ^
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:1742:29: note: in expansion of macro 'hfosc_up'
     if (hfosc == HFOSC_OFF) hfosc_up();
                             ^~~~~~~~
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:825:7: note: suggested alternative: '__builtin_avr_delay_cycles'
       _lgt8fx_delay_cycles(4);         \
       ^
/Users/whyameye/Documents/Arduino/libraries/lgt_lowpower/src/lgt_LowPower.cpp:1742:29: note: in expansion of macro 'hfosc_up'
     if (hfosc == HFOSC_OFF) hfosc_up();
                             ^~~~~~~~

exit status 1

Compilation error: exit status 1

avr\sleep.h: No such file or directory

When trying example idleWakePeriodic with latest from master (commit 5c1bc02) on MacOS Arduino v2.1.0 board LGT8F328P-LQFP48 I get:

/Users/***/Documents/Arduino/libraries/lgt_lowpower/src/lgt8fx_sleep.h:39:10: fatal error: avr\sleep.h: No such file or directory
 #include <avr\sleep.h>```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.