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
#!/bin/bash | |
###################################################################### | |
#This is an example of using getopts in Bash. It also contains some | |
#other bits of code I find useful. | |
#Author: Linerd | |
#Website: http://tuxtweaks.com/ | |
#Copyright 2014 | |
#License: Creative Commons Attribution-ShareAlike 4.0 | |
#http://creativecommons.org/licenses/by-sa/4.0/legalcode |
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
esphome: | |
name: m5cam | |
platform: ESP32 | |
board: m5stack-core-esp32 | |
wifi: | |
ssid: "ssid" | |
password: "password" | |
# Enable logging |
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
rosterloh@gardinbot:~$ ros2 -h | |
usage: ros2 [-h] [--use-python-default-buffering] Call `ros2 <command> -h` for more detailed usage. ... | |
ros2 is an extensible command-line tool for ROS 2. | |
options: | |
-h, --help show this help message and exit | |
--use-python-default-buffering | |
Do not force line buffering in stdout and instead use the python default buffering, which might be affected by PYTHONUNBUFFERED/-u and depends on whatever stdout is interactive or not |
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
mixin: | |
- tune-pi4.mixin |
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
public class GPIO { | |
public String port; | |
public int pin; | |
//get direction of gpio | |
public String getInOut() | |
{ | |
String command = String.format("cat /sys/class/gpio/%s/direction",this.port); | |
try { |
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 : System Initialization | |
* Filename : sys_init.c | |
* Author : JWB | |
* Origin Date : 04/23/2012 | |
* Version : 1.0.0 | |
* Compiler : Microchip C30 v3.30c | |
* Target : PIC24FJ64GB004 | |
* Notes : None | |
*******************************************************************************/ |
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
import atexit | |
import argparse | |
from datetime import datetime, timedelta | |
from dynamixel_sdk import PortHandler | |
from dynamixel_sdk.robotis_def import COMM_SUCCESS | |
from dynamixel_sdk.packet_handler import PacketHandler | |
import logging | |
from logging.handlers import TimedRotatingFileHandler | |
import os | |
import sys |
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
uint8 module # module to control | |
uint8 command # value to set | |
--- | |
bool success # indicate successful run of triggered service |
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
import cv2 | |
import numpy as np | |
from datetime import datetime | |
import array | |
import fcntl | |
import os | |
import argparse | |
from utils import ArducamUtils | |
import Jetson.GPIO as GPIO | |
from time import sleep |
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
# boot.py | |
# Set Circuit Playground Express flash chip to program writeable | |
# If toggle switch is right, | |
# flash is program writeable and file access is frozen | |
# If toggle switch is left, | |
# flash chip file access ok, file writes give an error | |
# via Dan Conley | |
# https://learn.adafruit.com/cpu-temperature-logging-with-circuit-python/ | |
# writing-to-the-filesystem | |
# 2018 Mike Barela for Getting Started with Circuit Playground Express |
NewerOlder