Wireless Button Addition
Important Note
- The wireless button requires battery installation, the battery model is
CR927
- Return to the home page and click the
+inside the red box in the image belowLoading... - After the interface below appears, press the wireless button with the battery installed once normally
- The wireless button's ID will be automatically generated in the red box; this ID is unique
Loading...
- Enter the name you want for the button in the red box
Loading...
- Click the first red box, and the second blue box will appear
Loading...
Note
- Custom GCODE and API requests are controlled via wireless connection
- GPIO triggering is controlled via wired connection
Custom GCODE
- Customize
GCODE; you can enter the code or macro name you need to execute in the red box, and AirClick will automatically send it to the printer for executionLoading...
Request API
- Klipper API Settings
- RRF API Settings
- BambuLab API Settings
- Predefined APIs can implement custom macros, emergency stop, Klipper restart, firmware restart, system shutdown, etc.
Loading...
- Custom API Explanation
- All API reference documentation Moonraker API
methodshould be consistent with themethodof the Moonraker APIparamsshould be consistent with theparamsof the Moonraker API
- Below is an example using the API to start printing a specified file
- The image below is an example from the Moonraker official documentation
Loading...- Below is an example of filling in the API for AirClick
Loading... - Save this button to be able to start printing the specified file
- Custom API Explanation
- All API reference documentation RepRapFirmware HTTP API
- Only GET request interfaces are supported
methodshould be consistent with theuriof the RRF HTTP APIparamsshould be consistent with theurl queryof the RRF HTTP API
- Below is an example using the API to delete a specified file or folder
- The image below is an example from the RRF official documentation
Loading...- Below is an example of filling in the API for AirClick
Loading...- Here, the params need to convert the URL parameters to JSON format, e.g.,
/?aaaa=bbb&cccc=ddd - After conversion, it should be
{"aaaa": "bbb","cccc": "ddd"}
- Save this button to be able to delete the specified file or folder
- Predefined APIs can implement pause printing, cancel printing, LED control, etc.
Loading...
- For LED control, it is recommended to use automatic switching mode. In this mode, the LED status will be automatically detected and toggled, enabling one-click on/off.
- Custom API Explanation
- For BambuLab API, please refer to the relevant Github Open BambuAPI documentation
- Below is an example using the API to set print speed
- Below are the complete parameters sent via BambuLab LAN MQTT
{"print": {"sequence_id": "0","command": "print_speed","param": "2" // Print speed level as a string// 1 = silent// 2 = standard// 3 = sport// 4 = ludicrous}}
- The image below shows an example of filling in the API for AirClick
Loading... - Below are the complete parameters sent via BambuLab LAN MQTT
- Save this button to be able to set the print speed
Trigger GPIO (Klipper Only)
-
Triggering GPIO requires STM32F072 to be connected to Klipper
-
For firmware flashing and connection, please refer to this document Firmware Flashing and Connection
-
Ten IOs from
PB0toPB9can be used. After properly flashing the firmware and connecting to Klipper, standard configuration is sufficient. Below is a reference configuration[mcu AirClick]serial: /dev/serial/by-id/usb-Klipper_stm32f072xb_AirClick-if00### Need to search for USB ID and modify here[gcode_button _test]pin: ^!AirClick:PB0press_gcode:M118 PB0[gcode_button _test1]pin: ^!AirClick:PB1press_gcode:M118 PB1[gcode_button _test2]pin: ^!AirClick:PB2press_gcode:M118 PB2[gcode_button _test3]pin: ^!AirClick:PB3press_gcode:M118 PB3[gcode_button _test4]pin: ^!AirClick:PB4press_gcode:M118 PB4[gcode_button _test5]pin: ^!AirClick:PB5press_gcode:M118 PB5[gcode_button _test6]pin: ^!AirClick:PB6press_gcode:M118 PB6[gcode_button _test7]pin: ^!AirClick:PB7press_gcode:M118 PB7[gcode_button _test8]pin: ^!AirClick:PB8press_gcode:M118 PB8[gcode_button _test9]pin: ^!AirClick:PB9press_gcode:M118 PB9
Loading...