Adafruit will not be shipping orders Monday May 27, 2019 Memorial Day Orders placed after 11am EST Friday May 24 will go out Tuesday May 28.
0

NEW GUIDE: A Logger for CircuitPython #CircuitPython #Python #Logging #AdafruitLearningSystem @Adafruit

A new guide in the Adafruit Learning System: A Logger for CircuitPython

In many environments you can go into a debugger and poke around. We don’t have that ability in CircuitPython, though. If you’re like this author, you sprinkle tactical print statements as needed.

Afterwards you probably go through and remove them or comment them out. Sometimes you miss some. Sometimes you’d like to leave them in place and be able to turn them on and off. There are times when you’d like to see some debugging information, and other times when you want to be notified of critical errors only.

A logging framework will let you do all that and more.

Specifically, the logging framework described in this guide will:

  • let you output messages at one of several levels of priority,
  • ignore messages below a specific priority,
  • automatically add a timestamp to messages,
  • provide the string format method support for building messages,
  • give you convenience methods for the outputting at standard priority levels,
  • control where messages go, and
  • make it easy to add new places for messages to go.

This guide will go over the use of the framework, walk through the implementation, and work through an example of adding a new destination capability.

See this guide now.

micropython_screenshot.png


Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Join 10,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython 2019!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/


Maker Business — Robotics manufacturer Anki shuts down

Wearables — Authentic shell business

Electronics — Lazy Libraries

Biohacking — Biohacking : The State of Tactile Notifications

Python for Microcontrollers — Google Coral, the console worn as a badge, and more Python on hardware! #Python #Adafruit #CircuitPython @circuitpython @micropython @ThePSF @Adafruit

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.