# apt-get update # apt-get install python-pip # pip install python-telegram-bot
from telegram.ext import Updater, CommandHandler def start(bot, update): update.message.reply_text("Hello World ! I'm a Bot\n") updater = Updater('insert-your-token-here') updater.dispatcher.add_handler(CommandHandler('start', start)) updater.start_polling() updater.idle()
This is the same Hello World example but using the on board Arietta led to show the command acknoledge. It uses the acmepins library no manage the on board red led.
from telegram.ext import Updater, CommandHandler from acmepins import ARIETTA_LED arietta_led=ARIETTA_LED() def start(bot, update): arietta_led.on() update.message.reply_text("Hello World !\n I'm a Bot\n") arietta_led.off() updater = Updater('insert-your-token-here') updater.dispatcher.add_handler(CommandHandler('start', start)) updater.start_polling() updater.idle()
from telegram.ext import Updater, CommandHandler from acmepins import ARIETTA_LED,GPIO job_queue=None chat_ids=[] def button_handler(): global job_queue global jchat_ids if len(chat_ids)>=0: for chat_id in chat_ids: job_queue.bot.sendMessage(chat_id, "Button pressed") def cmd_start(bot, update): global chat_ids update.message.reply_text('Command list:\n/start, /stop') chat_ids+=[update.message.chat_id] def cmd_stop(bot, update): global chat_ids try: chat_ids.remove(update.message.chat_id) return except ValueError: pass updater = Updater('insert-your-token-here') job_queue = updater.job_queue updater.dispatcher.add_handler(CommandHandler('start', cmd_start)) updater.dispatcher.add_handler(CommandHandler('stop', cmd_stop)) button=GPIO('PC17','INPUT') button.set_edge('falling',button_handler) updater.start_polling() updater.idle()
from telegram.ext import Updater, CommandHandler def start(bot, update): update.message.reply_text(" \ Help:\n \ /start\n \ /photo\n \ ") def photo(bot, update): update.message.reply_text('This is me...') bot.sendPhoto(update.message.chat_id, photo=open('me.jpg')) updater = Updater('insert-your-token-here') updater.dispatcher.add_handler(CommandHandler('start', start)) updater.dispatcher.add_handler(CommandHandler('photo', photo)) updater.start_polling() updater.idle()
![]() | ARIETTA-G25-V - ARM9 Linux Embedded Module (Green,128MB) Arietta G25 is a small and low-cost multi-chip module that integrates:
Basic Version with no strips mounted. If you need to have any strip mounted take a look to the soldering services Starting from July 2018 we make by default just color green Arietta G25. The only difference between the legacy black version and the new green version is the solder mask color. To order the legacy black version (Product id: ARIETTA-G25, MOQ 100 pcs) please contact us | Product description | |
![]() | ARIETTA-G25-256-V - ARM9 Linux Embedded Module (Green,256MB) Arietta G25 is a small and low-cost multi-chip module that integrates:
Basic Version with no strips mounted. If you need to have any strip mounted take a look to the soldering services Starting from July 2018 we make by default just color green Arietta G25. The only difference between the legacy black version and the new green version is the solder mask color. To order the legacy black version (Product id: ARIETTA-G25-256, MOQ 100 pcs) please contact us | Product description | |
![]() | COMBO-100 - Arietta G25 evaluation kit Basic kit to evaluate the Arietta G25 SOM Parts included:
|
![]() | XTERM-01 - 2.8 inch TFT display with resistive touch for Arietta G25
Arietta G25 not included | Product description | |
Normally the microSD sold on this catalog are the following:
Unfortunately we can't ensure the availability of the same models so we could change them with an equivalent or better features/brand/model (usually Sony or SanDisk).
It is possible to make by yourself bootable microSD using blank cards following this article:
Binary repository![]() | WIFI-2 - WiFi USB module (Ext. antenna) OEM Small USB module
|
![]() | AN-WIFI-01 - WiFi pcb external antenna WiFi PCB antenna with 11 cm cable and UMC 2mm connector to be plugged on WIFI-2 module. |
![]() | USB-3V-SER - USB to 3V3 serial converter USB to 3V3 serial converter ad 3.3 volt with separated pin plugs | Product description | |
![]() | DPI - Debug Port Interface DPI is an USB-to-serial interface to link the Acme boards debug port to a PC USB host port and have access at the Linux system console using a terminal emulator program like minicom, putty, hyperterminal, etc. | Product description | |
![]() | CABLE-01 - Mini USB data cable Mini USB data cable
|
![]() | CABLE-02 - Micro USB data cable Micro USB data cable
|
![]() | MWS-01 - WIFI-2 on Arietta G25 Manual soldering of WIFI-2 on the Arietta G25. WIFI-2 module not included. |
![]() | STRIP-005 - Male strip 20x2 pin 90 degree pitch 2.54mm
|
![]() | STRIP-006 - Female strip 20x2 pin 90 degree pitch 2.54mm
|
![]() | STRIP-008 - 6 pin male strip for debug port Male 6 pin strip ptch 2.54 mm (100 mils) for the Arietta G25 debug port |
![]() | MWS-10 - Metallic open frame on Acqua SOM Manual soldering of Metallic open frame on Acqua A5 SOM. | Product description | |
![]() | MWS-01 - WIFI-2 on Arietta G25 Manual soldering of WIFI-2 on the Arietta G25. WIFI-2 module not included. |
![]() | MWS-02 - DPI pin strip on Arietta G25 Manual soldering of DPI pin strip on the Arietta G25 including the DPI connector. |
![]() | MWS-03 - Socket on Arietta G25 J4 top side Manual soldering of a 20x2 pitch 2.54mm female connector on the top side of Arietta G25 including the STRIP-002 connector. |
![]() | MWS-04 - Socket on Arietta G25 J4 bottom side Manual soldering of a 20x2 pitch 2.54mm female connector on the bottom side of Arietta G25 including the STRIP-002 connector. |
![]() | MWS-05 - Header on Arietta G25 J4 top side Manual soldering of a 20x2 pitch 2.54mm male connector on the top side of Arietta G25 including the STRIP-001 connector. |
![]() | MWS-06 - Header on Arietta G25 J4 bottom side Manual welding of a 20x2 pitch 2.54mm male connector on the bottom side of Arietta G25 including the STRIP-001 connector. |
![]() | MWS-07 - 90 degree socket on Arietta G25 J4 top side Manual soldering of a 20x2 pitch 2.54mm 90 degree female connector on the top side of Arietta G25 including the STRIP-006 connector. |
![]() | MWS-08 - 90 degree header on Arietta G25 J4 top side Manual soldering of a 20x2 pitch 2.54mm 90 degree male connector on the top side of Arietta G25 including the STRIP-005 connector. |