Skip to content

Instantly share code, notes, and snippets.

@wlgrd
wlgrd / Betaflight for ubuntu
Last active January 27, 2024 22:23
How to set up betaflight fc with Ubuntu
1. Create a rule for the DFU
$ (echo '# DFU (Internal bootloader for STM32 MCUs)' echo 'ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"') | sudo tee /etc/udev/rules.d/45-stdfu-permissions.rules > /dev/null
2. Monitor connection and find your model (unplug/plug the fc while this cmd is active)
$ udevadm monitor --environment --udev | grep ID_MODEL_ID
3. Update the /etc/udev/rules.d/45-stdfu-permissions.rules file with your model. E.g, my MODEL_ID is 5740, and the .rules file
ends up like this:
pip install flake8
pip install flake8-pep257
apm install linter
apm install linter-flake8
apm install autocomplete-python
apm install hyperclick
apm install script
Description:
flake8 takes care of pep8 and docstrings linting,
<?xml version="1.0" encoding="utf-8"?>
<!--
This files include my first example for MSBuild.
It includes some properties (with condition), items and one target.
Created mostly for future reference.
-->
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">