summaryrefslogtreecommitdiff
path: root/exercises/110_quiz9.zig
diff options
context:
space:
mode:
authorAlexander Sisco <36649949+devspeare@users.noreply.github.com>2025-02-11 15:13:25 -0800
committerAlexander Sisco <36649949+devspeare@users.noreply.github.com>2025-02-11 15:13:25 -0800
commitf7e8d4c44435251aaef9f409d5492895a955ce67 (patch)
tree333f6167aa3ec07ae8803b539710528554d91fb6 /exercises/110_quiz9.zig
parentb7b3297d067416f0e44b285fdd8d7347165bf6c4 (diff)
added header for quiz problems
Diffstat (limited to 'exercises/110_quiz9.zig')
-rw-r--r--exercises/110_quiz9.zig32
1 files changed, 8 insertions, 24 deletions
diff --git a/exercises/110_quiz9.zig b/exercises/110_quiz9.zig
index 4412150..9036c04 100644
--- a/exercises/110_quiz9.zig
+++ b/exercises/110_quiz9.zig
@@ -70,30 +70,14 @@ const testing = std.testing;
pub fn main() !void {
var PORTB: u4 = 0b0000; // only 4 bits wide for simplicity
- // The LCD display on our robot is not behaving as expected. In order to
- // get it functioning properly, we must initialize it by sending the
- // correct sequence of half-bytes to PORTB's lower four pins.
- //
- // See if you can solve the following problems to get the lcd working and
- // reveal the message our robot has stored in his EEPROM.
- //
- // .--. .--.
- // | | | |
- // +--------------------------+
- // | +----------------------+ |
- // | | | |
- // | | XXXXXXXX XXXXXXXX | | <-- LCD
- // | | | |
- // | +----------------------+ |
- // | _________ |
- // | |_|_|_|_|_| |
- // | |
- // +--------------------------+
- // | |
- //
- // The last two problems throw you a bit of a curve ball. Try solving them
- // on your own. If you need help, scroll to the bottom to see some in depth
- // explanations on toggling, setting, and clearing bits in Zig.
+ // ------------------------------------------------------------------------
+ // Quiz
+ // ------------------------------------------------------------------------
+
+ // See if you can solve the following problems. The last two problems throw
+ // you a bit of a curve ball. Try solving them on your own. If you need
+ // help, scroll to the bottom of main to see some in depth explanations on
+ // toggling, setting, and clearing bits in Zig.
print("Toggle pins with XOR on PORTB\n", .{});
print("-----------------------------\n", .{});