- Mastodon is a microblogging social media platform like Twitter; you can write posts ("toots") and interact with other people's posts on a timeline.
- To sign up, you first need to choose a server (an "instance"), like choosing an email provider.
- Start posting!
- It's probably adequate to start with the official app made by the Mastodon group.
- There are three timelines; "Home" shows posts from people you follow; "Local" shows posts from people who are on your instance; "Federated" shows posts from all people known to your instance.
- You may notice some differences and limitations in the experience as compared to Twitter.
| import time | |
| from galactic import GalacticUnicorn | |
| from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN as DISPLAY | |
| import network | |
| import rp2 | |
| from machine import Pin | |
| import socket | |
| import struct | |
| import utime |
UPDATE 2 Nov 2023: Check out the article...
The First Batch of Ox64 (Oct 2022) won't appear as a USB Serial Port when connected to our computer because...
"The bin file that currently loaded in Ox64 still initialize and not response to UART or USB, however, it will setup the BL808 internal PMU and this is how product team aware that Ox64 board is working. This is the bl808_demo_event.bin file attached here.
| import time | |
| import network | |
| import urequests as requests | |
| from picographics import PicoGraphics, DISPLAY_ENVIRO_PLUS | |
| from pimoroni import RGBLED | |
| from breakout_bme68x import BreakoutBME68X, STATUS_HEATER_STABLE | |
| from breakout_ltr559 import BreakoutLTR559 | |
| from pimoroni_i2c import PimoroniI2C |
I have an updated version of this on my blog here: https://chrisamico.com/blog/2023-01-14/python-setup/.
This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.
- Python docs: https://docs.python.org/3/
- Python Standard Library: - Start here when you're trying to solve a specific problem
| import pytwitter | |
| from os import environ as env | |
| from dotenv import load_dotenv | |
| load_dotenv() # Loads the .env file we created earlier | |
| api = pytwitter.Api( | |
| consumer_key=env["CONSUMER_KEY"], | |
| consumer_secret=env["CONSUMER_SECRET"], | |
| access_token=env["OAUTH_TOKEN"], |
This isn't a guide about locking down homebrew so that it can't touch the rest of your system security-wise.
This guide doesn't fix the inherent security issues of a package management system that will literally yell at you if you try to do something about "huh, maybe it's not great my executables are writeable by my account without requiring authorization first".
But it absolutely is a guide about shoving it into its own little corner so that you can take it or leave it as you see fit, instead of just letting the project do what it likes like completely taking over permissions and ownership of a directory that might be in use by other software on your Mac and stomping all over their contents.
By following this guide you will:
- Never have to run
sudoto forcefully change permissions of some directory to be owned by your account
This became its own writeup: https://gist.github.com/pudquick/981a3e495ffb5badc38e34d754873eb5
There's several different kinds of art that can be configured for an entry. The only real place to configure them all is from Desktop mode, not Game mode.
| import socket | |
| import network | |
| import machine | |
| ssid = 'MicroPython-AP' | |
| password = '123456789' | |
| led = machine.Pin("LED",machine.Pin.OUT) | |
| ap = network.WLAN(network.AP_IF) |
| import network | |
| import socket | |
| import time | |
| from machine import Pin | |
| import uasyncio as asyncio | |
| led = Pin(15, Pin.OUT) | |
| onboard = Pin("LED", Pin.OUT, value=0) |