Shunt out more things for camera + bluetooth when not there.
This commit is contained in:
@ -143,9 +143,15 @@ vocabulary rtos rtos definitions
|
|||||||
transfer rtos-builtins
|
transfer rtos-builtins
|
||||||
forth definitions
|
forth definitions
|
||||||
|
|
||||||
vocabulary bluetooth bluetooth definitions
|
DEFINED? SerialBT.new [IF]
|
||||||
transfer bluetooth-builtins
|
vocabulary bluetooth bluetooth definitions
|
||||||
forth definitions
|
transfer bluetooth-builtins
|
||||||
|
forth definitions
|
||||||
|
[ELSE]
|
||||||
|
internals definitions
|
||||||
|
transfer bluetooth-builtins
|
||||||
|
forth definitions
|
||||||
|
[THEN]
|
||||||
|
|
||||||
vocabulary oled oled definitions
|
vocabulary oled oled definitions
|
||||||
transfer oled-builtins
|
transfer oled-builtins
|
||||||
|
|||||||
@ -12,6 +12,8 @@
|
|||||||
\ See the License for the specific language governing permissions and
|
\ See the License for the specific language governing permissions and
|
||||||
\ limitations under the License.
|
\ limitations under the License.
|
||||||
|
|
||||||
|
DEFINED? bluetooth [IF]
|
||||||
|
|
||||||
( Lazy loaded Bluetooth Serial Terminal )
|
( Lazy loaded Bluetooth Serial Terminal )
|
||||||
: bterm r|
|
: bterm r|
|
||||||
vocabulary bterm bterm definitions
|
vocabulary bterm bterm definitions
|
||||||
@ -34,3 +36,5 @@ name 0 bt SerialBT.begin drop
|
|||||||
only forth definitions
|
only forth definitions
|
||||||
bterm 500 ms bt-on
|
bterm 500 ms bt-on
|
||||||
| evaluate ;
|
| evaluate ;
|
||||||
|
|
||||||
|
[THEN]
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
internals definitions
|
internals definitions
|
||||||
transfer camera-builtins
|
transfer camera-builtins
|
||||||
|
DEFINED? esp_camera_init [IF]
|
||||||
forth definitions
|
forth definitions
|
||||||
|
|
||||||
( Lazy loaded camera handling for ESP32-CAM )
|
( Lazy loaded camera handling for ESP32-CAM )
|
||||||
@ -124,4 +125,6 @@ forth definitions
|
|||||||
camera
|
camera
|
||||||
| evaluate ;
|
| evaluate ;
|
||||||
|
|
||||||
|
[ELSE]
|
||||||
|
forth definitions
|
||||||
[THEN]
|
[THEN]
|
||||||
|
|||||||
@ -68,9 +68,10 @@
|
|||||||
// camera support and BluetoothSerial.
|
// camera support and BluetoothSerial.
|
||||||
// ESP32-CAM always have PSRAM, but so do WROVER boards,
|
// ESP32-CAM always have PSRAM, but so do WROVER boards,
|
||||||
// so this isn't an ideal indicator.
|
// so this isn't an ideal indicator.
|
||||||
|
// Also limiting to ESP32 classic only, as these can't be ESP32-CAM.
|
||||||
// Some boards (e.g. ESP32-S2-WROVER) don't seem to have
|
// Some boards (e.g. ESP32-S2-WROVER) don't seem to have
|
||||||
// built the serial library, so check if its enabled as well.
|
// built the serial library, so check if its enabled as well.
|
||||||
#if defined(BOARD_HAS_PSRAM) || defined(SIM_PRINT_ONLY)
|
#if (defined(CONFIG_IDF_TARGET_ESP32) && defined(BOARD_HAS_PSRAM)) || defined(SIM_PRINT_ONLY)
|
||||||
# define ENABLE_CAMERA_SUPPORT
|
# define ENABLE_CAMERA_SUPPORT
|
||||||
# if (defined(CONFIG_BT_ENABLED) && \
|
# if (defined(CONFIG_BT_ENABLED) && \
|
||||||
defined(CONFIG_BLUEDROID_ENABLED)) || \
|
defined(CONFIG_BLUEDROID_ENABLED)) || \
|
||||||
|
|||||||
Reference in New Issue
Block a user