{"id":13575418,"url":"https://github.com/dbuezas/lgt8fx","last_synced_at":"2025-04-05T15:08:29.005Z","repository":{"id":36031578,"uuid":"204313172","full_name":"dbuezas/lgt8fx","owner":"dbuezas","description":"Board Package for Logic Green LGT8F328P LGT8F328D and LGT8F88D","archived":false,"fork":false,"pushed_at":"2024-05-06T15:02:19.000Z","size":55562,"stargazers_count":388,"open_issues_count":16,"forks_count":88,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-03-28T22:12:29.334Z","etag":null,"topics":["amplifier","arduino","board","boards","chinese","clock-speed","core","differential","larduino-hsp","lgt328p","lgt8f328","lgt8f328p","manager","mini","nano","pro","softwareserial","ttgo","wavgat"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbuezas.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-25T15:27:32.000Z","updated_at":"2025-03-21T15:58:26.000Z","dependencies_parsed_at":"2024-11-05T11:51:22.905Z","dependency_job_id":null,"html_url":"https://github.com/dbuezas/lgt8fx","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbuezas%2Flgt8fx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbuezas%2Flgt8fx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbuezas%2Flgt8fx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbuezas%2Flgt8fx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbuezas","download_url":"https://codeload.github.com/dbuezas/lgt8fx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353746,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amplifier","arduino","board","boards","chinese","clock-speed","core","differential","larduino-hsp","lgt328p","lgt8f328","lgt8f328p","manager","mini","nano","pro","softwareserial","ttgo","wavgat"],"created_at":"2024-08-01T15:01:00.837Z","updated_at":"2025-04-05T15:08:28.955Z","avatar_url":"https://github.com/dbuezas.png","language":"C","funding_links":["https://www.buymeacoffee.com/dbuezas"],"categories":["C"],"sub_categories":[],"readme":"# How to install\n\nAdd the package to the arduino Boards Manager Urls:\n\n- Go to Preferences\n  - paste this url in Boards Manager URL: `https://raw.githubusercontent.com/dbuezas/lgt8fx/master/package_lgt8fx_index.json`\n- Go to Tools/Board/Boards manager\n  - Type `lgt8fx` in the search box\n  - install lgt8fx\n\nNow the boards appear in the IDE. You can also select clock speeds, [upload speeds and generic boards with external cystal](./docs/arduino/readme.md).\n\n\u003cimg src=\"./docs/arduino/boards_manager.png\" alt=\"Boards Manager\" width=\"550\"\u003e\n\u003cimg src=\"./docs/arduino/variants.png\" alt=\"Variants\" width=\"550\"\u003e\n\u003cimg src=\"./docs/arduino/clock.png\" alt=\"Clock\" width=\"550\"\u003e\n\u003cimg src=\"./docs/arduino/clock-source.png\" alt=\"External Clock\" width=\"550\"\u003e\n\n32Mhz 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](https://github.com/dbuezas/lgt8fx/discussions/77)\n\n# Recommended read\n\nTutorials and details about this board:\n[LGT8F328P - LQFP32 Boards • Wolles Elektronikkiste](https://wolles-elektronikkiste.de/en/lgt8f328p-lqfp32-boards)\n\n# Discussions, ideas, questions and show your project\n\n- Explore the discussions: https://github.com/dbuezas/lgt8fx/discussions\n\n# Features\n\n- [x] [Fast_IO update](./lgt8f/libraries/lgt328p/examples/lgt8fx8p_fastio/lgt8fx8p_fastio.ino)\n- [x] [In-menu external clock support](./docs/external-clock/readme.md) (by [#seisfeld](https://github.com/seisfeld))\n- [x] [In menu generic boards support with 1, 2, 4, 8, 12, 16 and 32 Mhz](./lgt8f/boards.txt)\n- [x] [Automatic prescaler setup](./lgt8f/cores/lgt8f/main.cpp#L128)\n- [x] [Digital Analog Converter](./lgt8f/libraries/lgt328p/examples/dac0_sinus/dac0_sinus.ino)\n- [x] [Voltage References](./lgt8f/libraries/lgt328p/examples/adc_i2v56/adc_i2v56.ino) INTERNAL1V024/INTERNAL2V048/INTERNAL4V096/DEFAULT/EXTERNAL (useful for example for analogRead or DAC analogWrite via analogReference(xxx));\n- [ ] Analog Comparator (page 224 of datasheet v1.0.4)\n- [x] [Differential Amplifier](./docs/differential-amplifier/readme.md). See this [Example](./lgt8f/libraries/differential_amplifier/examples/all_vs_all/all_vs_all.ino).\n- [ ] Computation Accelerator (page 52 of datasheet v1.0.4) [Work by others](https://www.avrfreaks.net/comment/2272366#comment-2272366)\n- [x] [SoftwareSerial at any clock speed](https://github.com/dbuezas/lgt8fx/pull/26). Updated implementation without timing tables by [#jg1uaa](https://github.com/jg1uaa)\n- [x] [2 to 6 high current 80ma IO pins](https://github.com/dbuezas/lgt8fx/issues/21#issuecomment-657020605) (thanks [#rokweom](https://github.com/rokweom))\n- [x] [328p Arduino ISP](https://github.com/dbuezas/lgt8fx/blob/master/lgt8f/libraries/LarduinoISP/readme.md) (from [#brother-yan](https://github.com/brother-yan/LGTISP))\n- [x] [SSOP20 328p Support](https://github.com/dbuezas/lgt8fx/pull/16) (by [#LaZsolt](https://github.com/LaZsolt))\n- [x] [Accurate delayMicroseconds](https://github.com/dbuezas/lgt8fx/issues/18) (by [#LaZsolt](https://github.com/LaZsolt))\n- [x] [Faster Analog Read](https://github.com/dbuezas/lgt8fx/pull/32) (by [#jayzakk](https://github.com/jayzakk))\n- [x] [Fixed analogReference](https://github.com/dbuezas/lgt8fx/issues/27) (reported by [#macron0](https://github.com/macron0))\n- [x] [Enabled AREF pin as A10 analog input](https://github.com/dbuezas/lgt8fx/pull/36) (by [#jayzakk](https://github.com/jayzakk))\n- [x] [Power reduce register definitions](https://github.com/dbuezas/lgt8fx/pull/46) (by [#KooLru](https://github.com/KooLru))\n- [x] [Support for interrupts on all timers and comparators](https://github.com/dbuezas/lgt8fx/pull/40) (by [#jayzakk](https://github.com/jayzakk))\n- [x] [Arduino EEPROM API](https://github.com/dbuezas/lgt8fx/pull/64) (by [#SuperUserNameMan](https://github.com/SuperUserNameMan)\n- [ ] Lock bits. It seems this micro controller doesn't have flash lock bits.\n\n# Timers\nThis chip has more timers, each with more features than the atmega328p.\nExplore, configure and visualize timers for both atmega328p and lgt328p with this online tool [https://github.com/dbuezas/arduino-web-timers](https://github.com/dbuezas/arduino-web-timers)\n\u003cimg width=\"800\" alt=\"image\" src=\"https://user-images.githubusercontent.com/777196/221049698-d2a51443-73c8-42d7-8e85-b46f25c42dc7.png\"\u003e\n\n\n# Differences to original core [Larduino_HSP v3.6c](https://github.com/Edragon/LGT/tree/master/1-LGT8F328/SDK/Arduino/HSP/HSP%20Patch%20File/Larduino_HSP_3.6c/Larduino_HSP_v3.6c)\n\n- Support 32 Mhz and other clock speeds\n- Selectable ADC resolution (Arduino compatibile default is 10 bits)\n- Differential Amplifier API\n- Better Boards Menu\n- Installation via Board Manager Urls\n- SoftwareSerial @32Mhz\n- FastIO ported from https://github.com/LGTMCU/Larduino_HSP\n\n# Power consumption @ 5v\n\n| Clock | Pro mini style w/o power LED | Pro mini style | Nano style |\n| ----- | ---------------------------- | -------------- | ---------- |\n| 32MHz | 12.7mA                       | 15.0mA         | 32.6mA     |\n| 16MHz | 9.2mA                        | 11.5mA         | 27.8mA     |\n| 8MHz  | 7.1mA                        | 9.4mA          | 25.4mA     |\n| 4MHz  | 5.9mA                        | 8.2mA          | 23.3mA     |\n| 2MHz  | 5.3mA                        | 7.6mA          | 23.4mA     |\n| 1MHz  | 5.0mA                        | 7.3mA          | 22.8mA     |\n\n# Example boards:\n\n## *--\u003eLGT8F328P-SSOP20*\n\n#### [Pro Mini Style SSOP20](../../wiki/Pro-Mini-Style---SSOP20)\n\n\u003cimg src=\"./docs/boards/ssop20.jpg\" alt=\"Pro Mini ssop20\" width=\"200\"\u003e \u003cimg src=\"./docs/boards/ssop20_back.jpg\" alt=\"Pro Mini ssop20\" width=\"200\"\u003e \u003cimg src=\"./docs/boards/ssop20.png\" alt=\"Pro Mini ssop20\" width=\"200\"\u003e\n\n\u003cimg src=\"./docs/boards/lgt8f328p_pro_mini_ssop20_pinout.png\" alt=\"Nano style\" width=\"800\"\u003e\nPinout by [wollewald](https://github.com/wollewald)\n\n## *--\u003eLGT8F328P-LQFP32*\n\n#### [WAVGAT Pro Mini Pseudo Clone](../../wiki/WAVGAT-Pro-Mini-Pseudo-Clone)\n\n\u003cimg src=\"./docs/boards/WAVGAT_Pro_Mini_Clone.jpg\" alt=\"Wavgat Pro Mini pseudo-clone\" width=\"200\"\u003e \u003cimg src=\"./docs/boards/wavgat_back.jpg\" alt=\"Wavgat Pro Mini pseudo-clone\" width=\"200\"\u003e Chip marked as AVGA328P\n\n#### Pro Mini style\n\n\u003cimg src=\"./docs/boards/pro_mini_LQFP32.png\" alt=\"Pro Mini style\" width=\"200\"\u003e\n\u003cimg src=\"./docs/boards/lgt8f328p_pro_mini_qfp32l_pinout.png\" alt=\"Nano style\" width=\"800\"\u003e\n\nPinout by [wollewald](https://github.com/wollewald) Visit his Electronic projects blog here https://wolles-elektronikkiste.de/en/\n\n#### [Nano Style](../../wiki/Nano-Style)\n\n\u003cimg src=\"./docs/boards/nano.jpg\" alt=\"Nano style\" width=\"200\"\u003e \u003cimg src=\"./docs/boards/nano_back.jpg\" alt=\"Nano style\" width=\"200\"\u003e\n\n\u003cimg src=\"./docs/boards/nano_LQFP32.png\" alt=\"Nano style\" width=\"200\"\u003e\n\u003cimg src=\"./docs/boards/lgt8f328p_nano_qfp32l_pinout.png\" alt=\"Nano style\" width=\"800\"\u003e\n\nPinout by [wollewald](https://github.com/wollewald)\n\nLike this pinout?\n\n[Create](./docs/boards/pinouts) more pinouts for the other boards!\n\n#### [Wemos TTGO XI](../../wiki/Wemos-TTGO-XI)\n\n\u003cimg src=\"./docs/boards/wemos.jpg\" alt=\"Wemos Nano style\" width=\"200\"\u003e \u003cimg src=\"./docs/boards/wemos back.jpg\" alt=\"Wemos Nano style\" width=\"200\"\u003e\n\n\u003cimg src=\"./docs/boards/TTGO_XI_8F328P-U_nano_V3.0_LQFP32.png\" alt=\"Wemos Nano style\" width=\"200\"\u003e\n\n#### Uno Style\n\n\u003cimg src=\"./docs/boards/uno_LQFP32.jpeg\" alt=\"Uno style\" width=\"200\"\u003e\n\n## *--\u003eLGT8F328D-LQFP32*\n\n#### LARDUINO Uno style\n\n\u003cimg src=\"./docs/boards/larduino_uno-front.jpg\" alt=\"Larduino Uno style\" width=\"200\"\u003e \u003cimg src=\"./docs/boards/larduino_uno-back.jpg\" alt=\"Larduino Uno style\" width=\"210\"\u003e\n\n## *--\u003eLGT8F328P-LQFP48*\n\n#### Nano Style\n\n\u003cimg src=\"https://user-images.githubusercontent.com/777196/232343332-d8d93c6b-80b1-4865-9910-bfa864a91081.png\" alt=\"Nano style\" width=\"200\"\u003e\n\u003cimg src=\"./docs/boards/lgt8f328p_nano_qfp48l_pinout.png\" alt=\"Nano style\" width=\"800\"\u003e\nPinout by [wollewald](https://github.com/wollewald)\n\n#### Uno Style\n\n\u003cimg src=\"./docs/boards/uno_LQFP48.png\" alt=\"Uno style\" width=\"200\"\u003e\n\n# Docs \u0026 links\n\n- Check the [Wiki](https://github.com/dbuezas/lgt8fx/wiki) for more content by contribuitors\n- And you may also find something in the closed [Issues](https://github.com/dbuezas/lgt8fx/issues?utf8=%E2%9C%93\u0026q=is%3Aissue)\n- Core is based on [Larduino_HSP v3.6c](https://github.com/Edragon/LGT/tree/master/1-LGT8F328/SDK/Arduino/HSP/HSP%20Patch%20File/Larduino_HSP_3.6c/Larduino_HSP_v3.6c) with fastIO backported from https://github.com/LGTMCU/Larduino_HSP\n- And inspired from Ralph Bacon's video: https://youtu.be/Myfeqrl3QP0 (Check his channel, he's uploaded a lot of great videos)\n- Great place to gather data about this boards: https://github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P\n- Datasheet [(Chinese) LGT8FX8P_databook_V1.04](./docs/LGT8FX8P_databook_v1.0.4.ch.pdf)\n- Datasheet [(English) LGT8FX8P_databook_V1.04](./docs/LGT8FX8P_databook_v1.0.4.en.pdf) thanks to [#metallurge](https://github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P/issues/2#issuecomment-517952757)\n- Datasheet [(English) LGT8FX8P_databook_V1.05](https://github.com/watterott/LGT8F328P-Testing/raw/master/LGT8FX8P_databook_v1.0.5-English.pdf) By [Watterrott](https://github.com/watterott/LGT8F328P-Testing)\n- [Instruction set clk vs avr](https://docs.google.com/spreadsheets/d/1EzwMkWOIMNDqnjpbzuchsLx5Zq_j927tvAPgvmSuP6M/edit?usp=sharing) By unknown, claim if you are the author\n- [Work on the differential amplifier](./docs/differential-amplifier/readme.md)\n- \"Forbiden tech from China has arrived\" https://www.avrfreaks.net/forum/forbiden-tech-china-has-arrived?page=all\n- Larduino ISP for 328d https://github.com/Edragon/LGT/tree/master/Toolchain/LarduinoISP-master\n- https://www.eevblog.com/forum/projects/anyone-here-interested-in-the-logic-green-avrs-lgt8f328p/\n- http://coultersmithing.com/forums/viewtopic.php?f=6\u0026t=1149\n- LGT SDK Builder\n  - \"very useful during development, hopefully others can find it helpful too.\" @sengit\n  - Document page : http://www.lgtic.com/2017/11/11/lgtsdk_builder/\n  - Download link : http://www.lgtic.com/upload/tools/lgtsdk_builder/LGTSDK_Builder_latest.rar\n\nPS: Just want to say thanks for this git, helped me a lot!\n# Disclamer\n\nI 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\n\n# Automated Releases\n\nEach time a PR is merged, the release action will be triggered.\n\nThe following steps are executed\n* Generate the release artefacts (the lgt8f-1.0.x.zip file)\n* Update the `package_lgt8fx_index.json` file with the new version\n* Commit and push those changes to the repository\n* Generate a release with the artefact.\n\nPRs that only touch the `readme.md` file, or the `/docs` folder will NOT trigger a release.\n\nThe action can be found here: https://github.com/dbuezas/lgt8fx/blob/master/.github/workflows/release.yml\n\n# Download stats\n\nhttps://tooomm.github.io/github-release-stats/?username=dbuezas\u0026repository=lgt8fx\n\n# Thanks\n\n- [#Larduino_HSP](https://github.com/LGTMCU/Larduino_HSP) for doing 90% of the work\n- [#RalphBacon](https://github.com/RalphBacon) introducing most of us to the board\n- [#dcfusor](https://github.com/dcfusor) for help with fast io backporting\n- [#HI-SEBA](https://github.com/HI-SEBA) for help with software serial\n- [#dwillmore](https://github.com/dwillmore) for creating the wiki, serial adapter troubleshooting, more examples of boards and wemos-TTGO-XI board support\n- [#seisfeld](https://github.com/seisfeld) for adding in-menu support for an external oscillator\n- [#jg1uaa](https://github.com/jg1uaa) for the updated Software Serial without timing tables and missing methods\n- [#LaZsolt](https://github.com/LaZsolt) for adding SSOP20 lgt8f328p support and accurate delayMicroseconds\n- [#jayzakk](https://github.com/jayzakk) for fixing the ADC prescaler for faster analog reads\n- [#wollewald](https://github.com/wollewald) for all the pinout diagrms \n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/dbuezas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbuezas%2Flgt8fx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbuezas%2Flgt8fx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbuezas%2Flgt8fx/lists"}