Skip to content

Instantly share code, notes, and snippets.

View wgaylord's full-sized avatar

William Gaylord wgaylord

View GitHub Profile
chibill@jwg1:/data_pool/ESPRust/xtensa-rust-quickstart$ xargo build
Compiling r0 v1.0.0
Compiling spin v0.5.2
Compiling mutex-trait v0.2.0
Compiling panic-halt v0.2.0
Compiling xtensa-lx-rt v0.5.0
Compiling rustc_version v0.2.3
Compiling proc-macro2 v1.0.24
error: failed to run custom build command for `xtensa-lx-rt v0.5.0`
chibill@jwg1:/data_pool/ESPRust/xtensa-rust-quickstart$ xargo build --features="xtensa-lx-rt/lx6 xtensa-lx/lx6 esp32-hal"
Downloaded void v1.0.2
Downloaded darling v0.10.2
Downloaded darling_core v0.10.2
Downloaded strsim v0.9.3
Downloaded nb v0.1.3
Downloaded ident_case v1.0.1
Downloaded vcell v0.1.2
Downloaded nb v1.0.0
Downloaded darling_macro v0.10.2
@wgaylord
wgaylord / gist:55a4eac3e7755d712f9a61115101decc
Created December 19, 2020 15:37
ccpexample usermodule error
chibill@jwg1:/data_pool/micropython/project/micropython/ports/esp32$ make USER_C_MODULES=../../examples/usercmodule/ CFLAGS_EXTRA=-DMODULE_CPPEXAMPLE_ENABLED=1 all
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Including User C Module from ../../examples/usercmodule//cexample
Including User C Module from ../../examples/usercmodule//cppexample
Building with ESP IDF v4
GEN build-GENERIC/genhdr/qstr.i.last
In file included from ../../py/mpconfig.h:62,
from ../../py/mpstate.h:31,
from ../../py/runtime.h:29,
from ../../examples/usercmodule//cppexample/examplemodule.h:2,
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveRangeEdit.cpp.o
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/CodeGen -I/data_pool/LLVM/llvm-project/llvm/lib/CodeGen -Iinclude -I/data_pool/LLVM/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveRangeEdit.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveRangeEdit.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveRangeEdit.cpp.o -c /data_pool/LLVM/llvm-project/llvm/lib/CodeGen/LiveRangeEdit.cpp
In file includ
@wgaylord
wgaylord / main.py
Created February 8, 2021 17:19
RPLY program that is giving a weird error. - Has test data at the bottom, Just run the file to test,
PS D:\Compiler\BoatCPU\ASM> ..\..\..\python39\python.exe .\main.py
Traceback (most recent call last):
File "D:\Compiler\BoatCPU\ASM\main.py", line 84, in <module>
print(parser.parse(lexer.lex(q)))
File "D:\python39\lib\site-packages\rply\parser.py", line 22, in parse
current_state = self._reduce_production(
File "D:\python39\lib\site-packages\rply\parser.py", line 80, in _reduce_production
value = p.func(targ)
File "D:\Compiler\BoatCPU\ASM\main.py", line 26, in expressions_expressions_expression
return t.append(p[1])
# Python Prime Sieve
#
# MyFirstPython Program (tm) Dave Plummer 8/9/2018
#
# This is the main prime_sieve class. Call it with the number you wish as an upper limit, then
# call the runSieve method to do the calculation. printResults will dump the count to check validity.
#
# Updated 3/22/2021 for Dave's Garage episode comparing C++, C#, and Python
chibill@jwg1:/data_pool/Rust/esp32/rust-esp32-std-demo$ cargo +esp build
Updating git repository `https://github.com/esp-rs-compat/getrandom.git`
Updating git repository `https://github.com/esp-rs-compat/polling`
Updating git repository `https://github.com/esp-rs-compat/smol`
Updating git repository `https://github.com/esp-rs-compat/socket2`
Updating crates.io index
Updating git repository `https://github.com/yuri91/ili9341-rs`
Downloaded futures-sink v0.3.21
Downloaded futures-channel v0.3.21
Downloaded anyhow v1.0.56
chibill@jwg1:/data_pool/Rust/esp32/rust-metal/rust-metal$ cargo build
Compiling compiler_builtins v0.1.67
Compiling proc-macro2 v1.0.36
Compiling unicode-xid v0.2.2
Compiling syn v1.0.86
Compiling libc v0.2.119
Compiling core v0.0.0 (/home/chibill/.rustup/toolchains/esp/lib/rustlib/src/rust/library/core)
Compiling cfg-if v1.0.0
Compiling libc v0.2.108
Compiling memchr v2.4.1

Addons I have worked on in some way.

Improvements / Edits

tttdamgelogs


I have made multiple Pull Requests on this addon and also have been working on new functionality.

Improvements

@wgaylord
wgaylord / main.cpp
Last active September 15, 2023 15:34
Memory Allocator game.
#define OLC_PGE_APPLICATION
#include "olcPixelGameEngine.h"
#include <ctime>
bool CheckBounds(int mouseX, int mouseY, int top, int left, int width, int height);