Skip to content

Instantly share code, notes, and snippets.

@diskball
diskball / Code.py
Last active February 17, 2021 12:16
For use with CircuitPython and the RPi Pico. The keypad used in this case is the pico rgb keypad from Pimoroni. The specific script will allow the use as a HID gamepad device
import time
import board
import busio
import usb_hid
from adafruit_bus_device.i2c_device import I2CDevice
import adafruit_dotstar
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
//
// ViewController.swift
// AwesomeModals
//
// Created by George Bafaloukas on 02/04/2019.
// Copyright © 2019 George Bafaloukas. All rights reserved.
//
import UIKit
//
// ModalFormViewController.swift
// AwesomeModals
//
// Created by George Bafaloukas on 02/04/2019.
// Copyright © 2019 George Bafaloukas. All rights reserved.
//
import UIKit
@diskball
diskball / RealmLogger.swift
Created March 31, 2019 18:22
Updated RealmLogger.swift
//
// RealmLogger.swift
// Realm Logger
//
// Created by George Bafaloukas on 12/09/2018.
// Copyright © 2018 George Bafaloukas. All rights reserved.
//
import UIKit
import RealmSwift
//
// ViewController.swift
// Realm Logger
//
// Created by George Bafaloukas on 12/09/2018.
// Copyright © 2018 George Bafaloukas. All rights reserved.
//
import UIKit
@diskball
diskball / LogsViewController.swift
Created September 16, 2018 20:24
LogsViewController class
//
// LogsViewController.swift
// Realm Logger
//
// Created by George Bafaloukas on 12/09/2018.
// Copyright © 2018 George Bafaloukas. All rights reserved.
//
import UIKit
@diskball
diskball / RealmLogger.swift
Created September 16, 2018 20:23
RealmLogger class
//
// RealmLogger.swift
// Realm Logger
//
// Created by George Bafaloukas on 12/09/2018.
// Copyright © 2018 George Bafaloukas. All rights reserved.
//
import UIKit
import RealmSwift