Coder Social home page Coder Social logo

lazsolt / lgt8fx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dbuezas/lgt8fx

8.0 2.0 1.0 54.28 MB

Board Package for Logic Green LGT8F328P, LGT8F328D and LGT8F328P-SSOP20

Makefile 6.27% C 51.97% Shell 0.23% C++ 29.29% Assembly 9.94% Processing 0.30% PHP 1.85% JavaScript 0.15%

lgt8fx's Introduction

How to install

Add the package to the arduino Boards Manager Urls:

  • Go to Preferences
    • paste this url in Boards Manager URL: https://raw.githubusercontent.com/dbuezas/lgt8fx/master/package_lgt8fx_index.json
  • Go to Tools/Board/Boards manager
    • Type lgt8fx in the search box
    • install lgt8fx

Now the boards appear in the IDE. You can also select clock speeds, upload speeds and generic boards with external cystal.

Boards Manager

Variants

Clock

External Clock

32Mhz is twice as fast as a conventional arduino nano! Actually even faster as many operations take less clock cycles than in the atmega328p. Check out some benchmarks

Recommended read

Tutorials and details about this board: LGT8F328P - LQFP32 Boards โ€ข Wolles Elektronikkiste

Discussions, ideas, questions and show your project

Features

Timers

This chip has more timers, each with more features than the atmega328p. Explore, configure and visualize timers for both atmega328p and lgt328p with this online tool https://github.com/dbuezas/arduino-web-timers image

Differences to original core Larduino_HSP v3.6c

  • Support 32 Mhz and other clock speeds
  • Selectable ADC resolution (Arduino compatibile default is 10 bits)
  • Differential Amplifier API
  • Better Boards Menu
  • Installation via Board Manager Urls
  • SoftwareSerial @32Mhz
  • FastIO ported from https://github.com/LGTMCU/Larduino_HSP

Power consumption @ 5v

Clock Pro mini style w/o power LED Pro mini style Nano style
32MHz 12.7mA 15.0mA 32.6mA
16MHz 9.2mA 11.5mA 27.8mA
8MHz 7.1mA 9.4mA 25.4mA
4MHz 5.9mA 8.2mA 23.3mA
2MHz 5.3mA 7.6mA 23.4mA
1MHz 5.0mA 7.3mA 22.8mA

Example boards:

-->LGT8F328P-SSOP20

Pro Mini ssop20 Pro Mini ssop20 Pro Mini ssop20

Nano style

Pinout by [wollewald](https://github.com/wollewald)

-->LGT8F328P-LQFP32

Wavgat Pro Mini pseudo-clone Wavgat Pro Mini pseudo-clone Chip marked as AVGA328P

Pro Mini style

Pro Mini style

Nano style

Pinout by wollewald Visit his Electronic projects blog here https://wolles-elektronikkiste.de/en/

Nano style Nano style

Nano style

Nano style

Pinout by wollewald

Like this pinout?

Create more pinouts for the other boards!

Wemos Nano style Wemos Nano style

Wemos Nano style

Uno Style

Uno style

-->LGT8F328D-LQFP32

LARDUINO Uno style

Larduino Uno style Larduino Uno style

-->LGT8F328P-LQFP48

Nano Style

Nano style

Nano style

Pinout by [wollewald](https://github.com/wollewald)

Uno Style

Uno style

Docs & links

PS: Just want to say thanks for this git, helped me a lot!

Disclamer

I have no association with Arduino, Logic Green, Atmel or anything. I just wanted to have a convenient way to use these boards and get them to work without hacks at max speed

Automated Releases

Each time a PR is merged, the release action will be triggered.

The following steps are executed

  • Generate the release artefacts (the lgt8f-1.0.x.zip file)
  • Update the package_lgt8fx_index.json file with the new version
  • Commit and push those changes to the repository
  • Generate a release with the artefact.

PRs that only touch the readme.md file, or the /docs folder will NOT trigger a release.

The action can be found here: https://github.com/dbuezas/lgt8fx/blob/master/.github/workflows/release.yml

Download stats

https://tooomm.github.io/github-release-stats/?username=dbuezas&repository=lgt8fx

Thanks

  • #Larduino_HSP for doing 90% of the work
  • #RalphBacon introducing most of us to the board
  • #dcfusor for help with fast io backporting
  • #HI-SEBA for help with software serial
  • #dwillmore for creating the wiki, serial adapter troubleshooting, more examples of boards and wemos-TTGO-XI board support
  • #seisfeld for adding in-menu support for an external oscillator
  • #jg1uaa for the updated Software Serial without timing tables and missing methods
  • #LaZsolt for adding SSOP20 lgt8f328p support and accurate delayMicroseconds
  • #jayzakk for fixing the ADC prescaler for faster analog reads
  • #wollewald for all the pinout diagrms

"Buy Me A Coffee"

lgt8fx's People

Contributors

asilichenko avatar dbuezas avatar dwillmore avatar eimiz avatar github-actions[bot] avatar jayzakk avatar jg1uaa avatar koolru avatar lazsolt avatar seisfeld avatar superusernameman avatar thinhx2 avatar wollewald avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

beat-sound

lgt8fx's Issues

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>```

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

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.