Skip to content

Instantly share code, notes, and snippets.

#PiBot Server
from bluedot.btcomm import BluetoothServer
from signal import pause
import explorerhat
def data_received(data):
print(data)
if data == "left":
explorerhat.motor.one.forward(100)
elif data == "leftstop":
#PiBot Client
from gpiozero import Button
from bluedot.btcomm import BluetoothClient
left = Button(27)
right = Button(22)
back = Button(17)
def data_received(data):
print(data)
#include "include/tm4c123gh6pm.h"
#include "include/delay.h"
#define RED (1U<<1)
#define BLUE (1U<<2)
#define GREEN (1U<<3)
int main(){
SYSCTL_RCGCGPIO_R=0x20U;
GPIO_PORTF_LOCK_R=0x4C4F434BU;
GPIO_PORTF_CR_R=0xFF;
#include "include/tm4c123gh6pm.h"
#include "include/delay.h"
#define RED (1U<<1)
#define BLUE (1U<<2)
#define GREEN (1U<<3)
int main()
{
SYSCTL_RCGCGPIO_R=0x20U;
#include "include/tm4c123gh6pm.h"
#define RED (1U<<1)
#define BLUE (1U<<2)
#define GREEN (1U<<3)
int delay=0;
int main()
{
SYSCTL_RCGCGPIO_R=0x20U;
GPIO_PORTF_DIR_R=0x0EU;

Keybase proof

I hereby claim:

  • I am tkmarsh on github.
  • I am tkmarsh (https://keybase.io/tkmarsh) on keybase.
  • I have a public key ASCh4Pa678so2smxFZm3TXBkRcDWdToLsk7TsjDoYWYfbAo

To claim this, I am signing this object: