Skip to content

Instantly share code, notes, and snippets.

use tokio::{runtime::Builder, sync::{mpsc}};
use winit::{event::{Event, WindowEvent}, event_loop::{ControlFlow, EventLoop}, window::{Window, WindowBuilder}};
pub struct Gpu {
pub surface: wgpu::Surface,
pub device: wgpu::Device,
pub queue: wgpu::Queue,
pub sc_desc: wgpu::SwapChainDescriptor,
pub swap_chain: wgpu::SwapChain,
#define SPI_INSTANCE 1 /**< SPI instance index. */
#define BUFF_LENGTH 2 /**< Transfer length. */
static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(SPI_INSTANCE); /**< SPI instance. */
static uint8_t m_tx_buf[BUFF_LENGTH]; /**< TX buffer. */
static uint8_t m_rx_buf[BUFF_LENGTH]; /**< RX buffer. */
static volatile bool burst_completed = false;
static volatile bool spi_xfer_done = false; /**< Flag used to indicate that SPI instance completed the transfer. */
@itod
itod / split_keyboards.md
Last active April 28, 2024 19:44
Every "split" mechanical keyboard currently being sold that I know of
@nebgnahz
nebgnahz / gstreamer.md
Last active November 6, 2023 12:28
Collections of GStreamer usages

Most GStreamer examples found online are either for Linux or for gstreamer 0.10.

This particular release note seems to have covered important changes, such as:

  • ffmpegcolorspace => videoconvert
  • ffmpeg => libav

Applying -v will print out useful information. And most importantly the negotiation results.

@fenderstic
fenderstic / BuildingGstreamerOnOSX(ElCapitan).md
Last active September 25, 2019 04:47
A walkthrough 'Building GStreamer On OSX (El Capitan)'

The document for building gstreamer from source is not found. So, I decided to upload this document for beginners of gstreamer. Please DO NOT take this document SERIOUSLY : ) It might have some mistakes, cause I'm a newbie as you.

Get started with XCODE and BREW

I had tried to install all kind of build tools with source build and installation. And I realized it was stupid things that waste my priceless time.

  • XCODE install on terminal
    • xcode-select --install
  • Brew install on terminal