This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ================== CAN1 and CAN2 LPC1768 test ===========================// | |
//CooCox IDE | |
/* "I was just starting my journey with uC and CAN so it was real PIA to understand whole stuff. | |
* This example have much more rich comments so it will be easier for newbie to understand what is going on | |
* Ensure that before you start with this example you know how CAN work. I also assume that you are already | |
* after GPIO basics chapter | |
This example was build on LandTiger v2.0 board (LPC1768). In this board there are CAN 2 controllers | |
with transceivers are available: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
***************************************************************************** | |
* @title USB_CDC.c | |
* @author Lean966 | |
* @date 14 Jul 2011 | |
* @brief USB Device as CDC for LPC17xx, the character are recived and tra | |
* smitted on the simulated VCOM . | |
* Note: the same example, could b | |
* e used for the LPC17xx USB CDC stack. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install python-pip python-dev ipython | |
sudo apt-get install bluetooth libbluetooth-dev | |
sudo pip install pybluez |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VSCode Nautilus Extension | |
# | |
# Place me in ~/.local/share/nautilus-python/extensions/, restrart Nautilus, and enjoy :) | |
# mkdir -p ~/.local/share/nautilus-python/extensions && cp -f VSCodeExtension.py ~/.local/share/nautilus-python/extensions/VSCodeExtension.py && nautilus -q | |
# | |
# This script was written by cra0zy and is released to the public domain | |
from gi import require_version | |
require_version('Gtk', '3.0') | |
require_version('Nautilus', '3.0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def autodict(*args): | |
""" | |
Creates dictonary from python variables where key is variable name and value is var value | |
:param args: python variables | |
:return: dictonary | |
""" | |
g = {k: v for k, v in globals().items() if not k.startswith('__')} | |
result = {} | |
for arg in args: |