Skip to content

Instantly share code, notes, and snippets.

View Yornik's full-sized avatar

Yornik Heyl Yornik

View GitHub Profile
@Yornik
Yornik / bus.py
Last active September 10, 2018 22:18
#bus.py
##Copyright 2018 Yornik Heyl
##
##Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
##including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
##subject to the following conditions:
##
##The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
##
##THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@Yornik
Yornik / DNAmind.py
Created February 5, 2019 13:41
DNAmind.py
"""
Yornik Heyl 1084970 DNAmind
Een kloon van mastermind waar je probeert een DNA string.
van een variabele lengte tussen de 3 en 12 te raden.
"""
"""
Voor het willekeurig kiezen in een lijst en afsluiten
delen van modules importeren.
#include <stdint.h>
#include <Arduino.h>
#include <FastLED.h>
#define DATA_PIN_LED 27
static CRGB leds[25];
void setup(void)
#include <stdint.h>
#include <Arduino.h>
#include <FastLED.h>
#define DATA_PIN_LED 27
const int pushButton = 39;
static CRGB leds[25];
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity Display_Controller is
Port (
clk: in STD_LOGIC;
reset: in STD_LOGIC;
hex_value: in STD_LOGIC_VECTOR (15 downto 0);
# This file contains common pin mappings for the BigTreeTech Octopus X7
# To use this config, the firmware should be compiled for the STM32F407 with a "32KiB bootloader"
# after running "make", copy the generated "klipper/out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the OctoPus with that SD card.
# See docs/Config_Reference.md for a description of parameters.
## Formbot / Vivedino Troodon 2.0
## Firmware Version: 1.2