Skip to content

Commit

Permalink
TiltBridge v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thorrak committed Jun 19, 2020
2 parents 2e0c5e7 + f641ef9 commit eef5406
Show file tree
Hide file tree
Showing 51 changed files with 6,905 additions and 371 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,9 @@ fabric.properties
.idea/

docs/.build/html/
docs/.build/doctrees/
docs/.build/doctrees/
/.pio
/.vscode

cmake-build-*

51 changes: 43 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,70 @@
# !!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE
# https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
#
# If you need to override existing CMake configuration or add extra,
# please create `CMakeListsUser.txt` in the root of project.
# The `CMakeListsUser.txt` will not be overwritten by PlatformIO.

cmake_minimum_required(VERSION 3.2)
project(tiltbridge)
project("tiltbridge")

include(CMakeListsPrivate.txt)

if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeListsUser.txt)
include(CMakeListsUser.txt)
endif()

add_custom_target(
PLATFORMIO_BUILD ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run
COMMAND ${PLATFORMIO_CMD} -f -c clion run "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
PLATFORMIO_BUILD_VERBOSE ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --verbose "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
PLATFORMIO_UPLOAD ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target upload
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target upload "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
PLATFORMIO_CLEAN ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target clean
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target clean "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
PLATFORMIO_MONITOR ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion device monitor "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
PLATFORMIO_TEST ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion test
COMMAND ${PLATFORMIO_CMD} -f -c clion test "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
PLATFORMIO_PROGRAM ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target program
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target program "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
PLATFORMIO_UPLOADFS ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target uploadfs
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target uploadfs "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_custom_target(
PLATFORMIO_BUILD_DEBUG ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target debug "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

Expand All @@ -51,4 +80,10 @@ add_custom_target(
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_executable(${PROJECT_NAME} ${SRC_LIST})
add_custom_target(
PLATFORMIO_DEVICE_LIST ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion device list
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_executable(Z_DUMMY_TARGET ${SRC_LIST})
32 changes: 32 additions & 0 deletions CMakeListsUser.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@


set(COPY_CMD "cp")
set(RM_CMD "rm")


add_custom_target(
PLATFORMIO_COPY_BUILT_FIRMWARE

# TODO - Figure out how to ignore the return value if there aren't files already present with these filenames
# COMMAND ${RM_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/bin/lcd_ssd1306_firmware.bin"
# COMMAND ${RM_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/bin/lcd_ssd1306_partitions.bin"
# COMMAND ${RM_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/bin/lcd_ssd1306_spiffs.bin"

COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/lcd_ssd1306/firmware.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/lcd_ssd1306_firmware.bin"
COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/lcd_ssd1306/partitions.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/lcd_ssd1306_partitions.bin"
COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/lcd_ssd1306/spiffs.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/lcd_ssd1306_spiffs.bin"

COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/d32_pro_tft/firmware.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/d32_pro_tft_firmware.bin"
COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/d32_pro_tft/partitions.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/d32_pro_tft_partitions.bin"
COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/d32_pro_tft/spiffs.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/d32_pro_tft_spiffs.bin"

# COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/m5_stack_tft/firmware.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/m5_stack_tft_firmware.bin"
# COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/m5_stack_tft/partitions.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/m5_stack_tft_partitions.bin"
# COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/m5_stack_tft/spiffs.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/m5_stack_tft_spiffs.bin"

COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/tft_espi/firmware.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/tft_espi_firmware.bin"
COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/tft_espi/partitions.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/tft_espi_partitions.bin"
COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/.pio/build/tft_espi/spiffs.bin" "${CMAKE_CURRENT_SOURCE_DIR}/bin/tft_espi_spiffs.bin"

WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ TiltBridge automatically logs your data to the following cloud data services:

* [Fermentrack](https://www.fermentrack.com/)
* [Brewer's Friend](http://www.brewersfriend.com/)
* [Brewfather](https://brewfather.app)
* Google Sheets
* [Brewstatus](https://brewstat.us)


#### Features
Expand All @@ -30,8 +32,17 @@ TiltBridge automatically logs your data to the following cloud data services:

Building a TiltBridge is simple - the hardest decision in most cases is the enclosure. For more information, read the [documentation](http://docs.tiltbridge.com/).

Once you've acquired your hardware, simply flash the TiltBridge firmware with [Fermentrack](http://www.fermentrack.com/) or [BrewFlasher](http://www.brewflasher.com/). Easy!


#### Requirements

TiltBridge requires an ESP32-based controller, properly flashed with the TiltBridge firmware.
TiltBridge requires an ESP32-based controller properly flashed with the TiltBridge firmware.


### Support TiltBridge

Interested in supporting TiltBridge? Buy a [sticker](https://www.tindie.com/products/thorrak/tiltbridge-sticker/) (or a [magnet](https://www.tindie.com/products/thorrak/tiltbridge-magnet/))!



Binary file added bin/boot_app0.bin
Binary file not shown.
Binary file added bin/bootloader_dio_40m.bin
Binary file not shown.
Binary file added bin/d32_pro_tft_firmware.bin
Binary file not shown.
Binary file not shown.
Binary file added bin/d32_pro_tft_spiffs.bin
Binary file not shown.
Binary file removed bin/firmware.bin
Binary file not shown.
Binary file added bin/lcd_ssd1306_firmware.bin
Binary file not shown.
Binary file added bin/lcd_ssd1306_partitions.bin
Binary file not shown.
Binary file added bin/lcd_ssd1306_spiffs.bin
Binary file not shown.
Binary file removed bin/spiffs.bin
Binary file not shown.
Binary file added bin/tft_espi_firmware.bin
Binary file not shown.
Binary file added bin/tft_espi_partitions.bin
Binary file not shown.
Binary file added bin/tft_espi_spiffs.bin
Binary file not shown.
18 changes: 11 additions & 7 deletions data/about.htm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
<li class="nav-item">
<a class="nav-link" href="/settings/">Settings</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/calibration/">Calibration</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="/about/">About <span class="sr-only">(current)</span></a>
</li>
Expand Down Expand Up @@ -69,6 +72,8 @@ <h5 class="card-header">
<a href="https://www.reddit.com/user/lordfili">lordfili</a> on Reddit,
<a href="https://www.homebrewtalk.com/forum/members/thorrak.221138/">Thorrak</a> on the HBT forums, or
<a href="https://github.com/thorrak">Thorrak</a> on GitHub.
Tilt calibration and temperature correction code
provided by <a href="https://github.com/duncan-brown">duncan-brown</a>.
</p>

<p class="card-text"> TiltBridge documentation and support can be found at the following links:<br>
Expand All @@ -91,23 +96,22 @@ <h5 class="card-header">
</h5>
<div class="card-body">
<p class="card-text">
Your TiltBridge can be updated over the internet to the latest version of the TiltBridge
firmware by clicking the "Update Firmware" button below. Additionally, if you plan on
relocating your TiltBridge to a new network, you can reset the WiFi connection settings by
clicking "Reset WiFi".
<!-- Your TiltBridge can be updated over the internet to the latest version of the TiltBridge-->
<!-- firmware by clicking the "Update Firmware" button below.-->
If you plan on relocating your TiltBridge to a new network, you can reset the WiFi
connection settings by clicking "Reset WiFi".
</p>

<p class="card-text">
<a href="/ota/" class="btn btn-danger">Update Firmware</a>
<!-- <a href="/ota/" class="btn btn-danger">Update Firmware</a>-->
<a href="/restart/" class="btn btn-danger">Restart TiltBridge</a>
<a href="/wifi/" class="btn btn-danger">Reset WiFi</a>
</p>

</div>
</div>
</div>
</div>


</div>

</main>
Expand Down

0 comments on commit eef5406

Please sign in to comment.