Skip to content

Commit d5af4e0

Browse files
zelenskiCS107E BOT
authored andcommitted
ben slides.pdf
commit fdab914bf338b1bb6b60adf63500878760431f94 Author: Julie Zelenski <[email protected]> Date: Tue Dec 3 08:25:09 2024 -0800 ben slides.pdf
1 parent 99155ab commit d5af4e0

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed
File renamed without changes.

project/supportcode.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,33 @@ permalink: /project/supportcode
33
title: 'Code extras'
44
---
55

6-
### Code available in `$CS107E/src` directory
7-
This directory contains our class code for Mango Pi. You are encouraged to use/adapt/learn from this code as part of your project.
8-
- Source code for all `libmango` support modules
9-
- `ccu` `de` `font` `hdmi` `hstimer` `gpio_interrupt` `interrupts ` `mango` `ps2_keys` `ringbuffer` `uart`
10-
- Source for `spi` and `i2c` modules
6+
### Libmango and code extras
7+
You are encouraged to use/adapt/learn from any of our published code as part of your project.
8+
- `libmango`
9+
- Library of our reference modules is `$CS107E/lib/libmango.a`
10+
- Can also use your modules or your full library `libmymango.a`
11+
- Source code for `libmango` support modules available in the `$CS107E/src` directory
12+
- `ccu` `de` `font` `hdmi` `hstimer` `gpio_interrupt` `interrupts ` `mango` `ps2_keys` `ringbuffer` `uart`
13+
- `spi` and `i2c`
14+
- source in <https://github.com/cs107e/cs107e.github.io/tree/master/lectures/Output/code/extras>
1115
- these drivers have been successfully used in past, minor recent updates to code
12-
- Source for `pwm` and `i2s` modules
13-
- code for these peripherals is new and needs further testing
16+
- `pwm` and `i2s`
17+
- Source in <https://github.com/cs107e/cs107e.github.io/tree/master/lectures/Output/code/extras>
18+
- code for these modules is new and needs further testing
1419

15-
### Extras
16-
17-
The `$CS107E/extras` directory contains contributions shared by former students. Some of this code was written for Mango Pi, older code is for Raspberry Pi. These resources are not fully fleshed out, and we have not vetted the code.
20+
### Student extras
21+
The `$CS107E/extras` directory contains contributions shared by former students and bits of example code. Some of this code was written for Mango Pi, older code is for Raspberry Pi. Be aware the code may be incomplete or incorrect and the effort to port can range from minor nuisance to singificant rewrite.
1822
- `math_lib`: student's implementation of math functions
1923
- `neopixel`: sample code for Neopixel/WS8212 rgb led
2024

21-
Your project is welcome to use/build on these resources, but be aware the code may be incomplete or incorrect and the effort to port can range from minor nuisance to singificant rewrite. Be sure to cite the original and be clear about what the additional work you contributed when adopting it. Your project will be primarily evaluated on the portion of the work that is original.
25+
### Code found out in the wild
26+
Maker sites such as Adafruit, SparkFun, and DFRobot publish great tutorials and lots of example code. Their libraries tend to be well-tested and very complete, good resources to learn from! Broad web search will unearth all kinds of random code on github and blogs; expect a hodge-podge in terms of quality and completeness. Note that code you find in the wild is very unlikely to be direct drop-in to our environment (RISC-V, Mango Pi, bare-metal), but studying the code can provide useful insights and a starting point for a port.
27+
28+
### Citation
29+
If your project adopts from any resources you did not author yourself, they should be properly cited!
30+
- Citation should include author, url, what was used of their work
31+
- Explain what changes/extensions you contributed on top of the original (be specific)
32+
- Your project will be primarily evaluated the portion of the work that you contributed
2233

2334
{% comment %}
2435
- Code to read/write files on the [SD card](extras/sd_library)

0 commit comments

Comments
 (0)