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
/* USER CODE BEGIN Header */ | |
/** | |
****************************************************************************** | |
* @file : main.c | |
* @brief : Main program body | |
****************************************************************************** | |
* @attention | |
* | |
* Copyright (c) 2023 STMicroelectronics. | |
* All rights reserved. |
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
#include "gd32e232.h" | |
#include "systick.h" | |
// Speed 72MHz | |
// WB2812 | |
// 0.35 µs == 350 ns | |
// 1 code HIGH 400 ns 800 ns +- 150ns | |
// 0 code HIGH 850 ns 450 ns +- 150ns | |
// RWA above 50µs |
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
#define HAS_WIFI | |
using Iot.Device.Ssd13xx; | |
using nanoFramework.Hardware.Esp32; | |
using nanoFramework.Networking; | |
using System; | |
using System.Device.I2c; | |
using System.Diagnostics; | |
using System.Net; | |
using System.Net.Http; |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; |
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
namespace ClassFinder.Lib | |
open System | |
module ClassFinder = | |
Console.ReadLine() |> System.Int32.Parse |> fun x-> [1..x] |> List.iter (fun _ -> printfn "Hello World") | |
let isUpper c = | |
c |> Char.IsUpper | |
let toUpper c = |
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
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
namespace DrillBoardGcode | |
{ | |
class Program | |
{ | |
static double DRILLDEPTH = -4; | |
static double DRILLFEED = 5 * 60; |
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
/* Spool parts storage organizer | |
Based on https://www.thingiverse.com/thing:2793548 by hirez99 | |
Frank van der Hulst drifter.frank@gmail.com | |
24 Feb 2018 | |
This generates a drawer that can be fitted into an empty filament spool to | |
provide storage for small parts. | |
Holes need to be drilled in the sides of the spool for axles | |
A drill guide is provided to get the axle holes in the right places on the spool. | |
Axles are provided using tbuser's Pin Connectors V2 library https://www.thingiverse.com/thing:10541 |
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
$fn = 50; | |
color("yellow") rotate(90-$t*360/15) gear(4, 10); | |
module gear(teeth, step, height=8) { | |
angle = 360/(teeth*2); | |
radius = (step/2) / sin(angle/2); | |
apothem = (step/2) / tan(angle/2); | |
module circles() { | |
for (i = [1:teeth]) |
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
var lose = 0; | |
var win = 0; | |
var total = 0; | |
while (true) | |
{ | |
Console.WriteLine("Heads (0) or Tails (1)"); | |
var user = Console.ReadLine(); |
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
/* Spool parts storage organizer | |
Based on https://www.thingiverse.com/thing:2793548 by hirez99 | |
Frank van der Hulst drifter.frank@gmail.com | |
24 Feb 2018 | |
This generates a drawer that can be fitted into an empty filament spool to | |
provide storage for small parts. | |
Holes need to be drilled in the sides of the spool for axles | |
A drill guide is provided to get the axle holes in the right places on the spool. | |
Axles are provided using tbuser's Pin Connectors V2 library https://www.thingiverse.com/thing:10541 |
NewerOlder