diff --git a/old.js b/old.js
deleted file mode 100644
index cffe38e..0000000
--- a/old.js
+++ /dev/null
@@ -1,284 +0,0 @@
-import { lazy, useContext, useState } from "react";
-import {
- Image,
- ScrollView,
- StyleSheet,
- View,
- Text,
- TouchableHighlight,
- TouchableOpacity,
- Dimensions,
- Platform,
- ImageBackground,
-} from "react-native";
-import LightView from "./light";
-import { AppContext } from "../../utils";
-import MyIcon from "../../Components/Icon";
-
-const MotorView = lazy(() => import("./motor"));
-const SettingsView = lazy(() => import("./settings"));
-const ColorScenesView = lazy(() => import("./colorScenes"));
-
-const spaceToSide = 10; // left and right
-const top = 35;
-const spaceBetweenButtons = 60;
-
-const topFirst = top;
-const topSecond = top + spaceBetweenButtons;
-const topThird = top + 2 * spaceBetweenButtons;
-
-const windowDimensions = Dimensions.get("window");
-
-let data = [];
-
-const ledLines = 4;
-const ledsPerLine = 16;
-
-const deviceLeds = ledLines * ledsPerLine;
-
-for (let i = 0; i < deviceLeds; i++) {
- data.push("lime");
-}
-
-export default function DeviceScreen() {
- const appContext = useContext(AppContext);
- const [selectedView, setSelectedView] = useState(0);
- const [deviceLedsColors, setDeviceLedsColor] = useState(data);
-
- console.log(
- "wD",
- Platform.OS,
- windowDimensions.width,
- windowDimensions.width / 16
- );
-
- const SelectedView = () => {
- switch (selectedView) {
- case 0:
- return ;
- case 2:
- return ;
- case 3:
- return ;
- case 4:
- return ;
- default:
- Not found;
- }
- };
-
- const MyButton = ({ selectedViewNumber, top, left, space, iconName }) => {
- const TouchComponent =
- appContext.appColorScheme === "dark"
- ? TouchableHighlight
- : TouchableOpacity;
-
- return (
- setSelectedView(selectedViewNumber)}
- style={[
- {
- position: "absolute",
- backgroundColor: appContext.appTheme.card.backgroundColor,
- borderRadius: 10,
- padding: 8,
- },
- { top: top },
- left === true ? { left: space } : { right: space },
- ]}
- >
-
-
- );
- };
-
- const DeviceLedsColor = ({ style }) => {
- /*
-
-
-
-
- */
-
- let elements = [];
- let test = 400;
-
- for (let l = 0; l < ledLines; l++) {
- let left = 0;
- let ledsElements = [];
-
- console.log("l", l);
-
- for (let p = 0; p < ledsPerLine; p++) {
- left = left + 1.5;
-
- ledsElements.push(
- 360
- ? 0.27 * (test / 16)
- : 0.26 * (test / 16),
- }}
- />
- );
- }
-
- elements.push(
-
- {ledsElements}
-
- );
- }
-
- /*
- for (let i = 0; i < 16; i++) {
- l = l + 1.5;
-
- elements.push(
- 360
- ? 0.27 * (test / 16)
- : 0.26 * (test / 16),
- }}
- />
- );
- }*/
-
- return <>{elements}>;
- };
-
- return (
-
- {selectedView === 4 && (
-
-
-
-
-
- )}
-
- {appContext.isUserDeveloperModeEnabled ? (
- <>
- {selectedView !== 4 && (
-
- )}
- >
- ) : (
- <>
- {selectedView !== 4 && (
-
- )}
- >
- )}
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-const styles = StyleSheet.create({
- container: {
- flex: 1,
- alignItems: "center",
- justifyContent: "center",
- backgroundColor: "#2e2e30",
- },
- scrollView: {
- width: "100%",
- padding: 20,
- },
- image: {
- width: "100%",
- height: 250,
- },
-});