-
Notifications
You must be signed in to change notification settings - Fork 153
Initial support for Smart Response XE #669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2021, Tomasz Wasilczyk | ||
* | ||
* This file is part of the modm project. | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
// ---------------------------------------------------------------------------- | ||
|
||
#include <modm/board.hpp> | ||
|
||
int | ||
main() | ||
{ | ||
Board::initialize(); | ||
|
||
while (true) | ||
{ | ||
Board::LedDebug::toggle(); | ||
modm::delay(1s); | ||
} | ||
} |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<library> | ||
<extends>modm:srxe</extends> | ||
<options> | ||
<option name="modm:build:build.path">../../../build/srxe/blink</option> | ||
</options> | ||
<modules> | ||
<module>modm:build:scons</module> | ||
</modules> | ||
</library> |
Submodule modm-devices
updated
49 files
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (c) 2021, Tomasz Wasilczyk | ||
* | ||
* This file is part of the modm project. | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
// ---------------------------------------------------------------------------- | ||
|
||
#pragma once | ||
|
||
#include <modm/platform.hpp> | ||
|
||
using namespace modm::platform; | ||
|
||
/// @ingroup modm_board_srxe | ||
namespace Board { | ||
|
||
using namespace modm::literals; | ||
|
||
using SystemClock = modm::platform::SystemClock; | ||
|
||
using LedDebug = GpioB0; | ||
using Leds = SoftwareGpioPort<LedDebug>; | ||
|
||
namespace Display { | ||
|
||
using DC = GpioD6; | ||
using CS = GpioE7; | ||
using RST = GpioG2; | ||
|
||
} // namespace Display | ||
|
||
inline void | ||
initialize() { | ||
SystemClock::enable(); | ||
|
||
LedDebug::setOutput(); | ||
|
||
enableInterrupts(); | ||
} | ||
|
||
} // namespace Board |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<library> | ||
<repositories> | ||
<repository> | ||
<path>../../../../repo.lb</path> | ||
</repository> | ||
</repositories> | ||
|
||
<options> | ||
<option name="modm:target">atmega128rfa1-zu</option> | ||
<option name="modm:platform:core:f_cpu">16000000</option> | ||
</options> | ||
<modules> | ||
<module>modm:board:srxe</module> | ||
twasilczyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</modules> | ||
</library> |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2021, Tomasz Wasilczyk | ||
# | ||
# This file is part of the modm project. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# ----------------------------------------------------------------------------- | ||
|
||
def init(module): | ||
module.name = ":board:srxe" | ||
module.description = """ | ||
# Smart Response XE | ||
|
||
Smart Response XE is an obsolete classroom clicker, sold for as little as 5 USD on well known online auction site. | ||
It's a compelling platform that's fully reverse engineered and ready to hack out of box, featuring: | ||
- ATmega128RFA1 MCU | ||
- 384x160 LCD display | ||
- QWERTY keyboard | ||
- External 1M SPI flash | ||
- Exposed ISP and JTAG headers | ||
- ZigBee transciever w/ antennas | ||
- Powered by 4 AAA batteries | ||
- Optional (unpopulated): | ||
- RS232 | ||
- Debug LED | ||
- Buzzer | ||
- Accelerometer | ||
""" | ||
|
||
def prepare(module, options): | ||
if not options[":target"].partname.startswith("atmega128rfa1"): | ||
return False | ||
|
||
module.depends( | ||
":architecture:clock", | ||
":architecture:interrupt", | ||
":debug", | ||
":platform:clock", | ||
":platform:core", | ||
":platform:gpio", | ||
":platform:uart:0") | ||
return True | ||
|
||
def build(env): | ||
env.outbasepath = "modm/src/modm/board" | ||
env.copy('.') | ||
env.collect(":build:default.avrdude.programmer", "usbasp"); |
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ at90usb646 | |
at90usb647 | ||
at90usb82 | ||
atmega1284rfr2 | ||
atmega128rfa1 | ||
atmega128rfr2 | ||
atmega162 | ||
atmega165a | ||
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.